Current filter:
                                You should refresh the page.
                                  • Hi,

                                    while creating a new report with report designer the default values for the page settings are alwalys paper kind = letter, scale unit = inches with the corresponding border sizes.
                                    Is it possible to change these values in code or the model to DINA4, mm and the border sizes which usually fit our needs?

                                    Thanks
                                    Elisabeth

                                • Anatol (DevExpress Support) 11.07.2014

                                  We need additional time to find a solution for this task. Thank you for your patience.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Elizabeth,
                                If you mean a report created at runtime, you can handle the WinReportServiceController.NewXafReportWizardShowing event. In its event handler, you can access the report via the e.WizardParameters.Report parameter and customize it for your requirements:

                                [C#]
                                        void RepController_NewXafReportWizardShowing(object sender, NewXafReportWizardShowingEventArgs e) {             e.WizardParameters.Report.PaperKind = System.Drawing.Printing.PaperKind.Ledger;             e.WizardParameters.Report.ReportUnit = DevExpress.XtraReports.UI.ReportUnit.TenthsOfAMillimeter;         }

                                If you mean a predefined static report, you can use the Inherited Report approach to create a new report that inherits its layout from another report. You can use your report with predefined settings to create a new report with the same setting. Alternatively, you can just create your own template as described in the Creating and Sharing Project & Item Templates article. As a result you will be able to add a new report with predefined settings via the Add=>NewItem command in the Visual Studio context menu.

                                I hope this information will be helpful.