SystemWindowsFormsModule.PrintingSettingsStorage Property
Specifies whether printing settings are saved separately for each View.
Namespace: DevExpress.ExpressApp.Win.SystemModule
Assembly: DevExpress.ExpressApp.Win.v26.1.dll
Declaration
[DefaultValue(PrintingSettingsStorage.Application)]
public PrintingSettingsStorage PrintingSettingsStorage { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| PrintingSettingsStorage | Application | An value that specifies whether printing settings are saved separately for each View. |
Remarks
When a user modifies print options in the Page Setup or Preview dialog, the options are saved in the Application Model and are applied to every View in the application.
Set the PrintingSettingsStorage property to View to save print model settings for each View separately.
public class ApplicationBuilder : IDesignTimeApplicationFactory {
public static WinApplication BuildApplication() {
builder.AddBuildStep(application => {
// Configure PrintingSettingsStorage
var systemModule = application.Modules.FindModule<DevExpress.ExpressApp.Win.SystemModule.SystemWindowsFormsModule>();
if (systemModule != null) {
systemModule.PrintingSettingsStorage = DevExpress.ExpressApp.Win.SystemModule.PrintingSettingsStorage.View;
}
// ...
See Also