Stef

If you use the 'Page Setup' button of the WPF|WinForms ReportViewer, there is included validation. Please note that this is an external dialog used by viewers to provide options for specifying the physical pages.

Please elaborate which Telerik Reporting version is used, and how the exceeding value for the margin is entered in the report's PageSettings.

On a side note, errors on processing a report can be caught in the report's Error event, and in the viewer's Error event.

Regards,
Stef
Telerik by Progress

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items

Tomas

I have WPF app and i use the latest Telerik Reporting version 10.2.16.914. I edited template file Telerik.ReportViewer.Wpf in this app, hid default toolbar and created own. For show the Page Setup i placed the standard WPF button to the own toolbar. After click this button, i call ShowPageSetupDialog method on the report viewer object.

When i set some big value e.g. 600 to margin, the validation dialog is shown. But when i set e.g. 50 to margin i give the object reference error. The same report in the Telerik Report Designer and its Page Setup dialog behaves correctly.

Stef

The dialog that can be raised through the viewer has validation, not allowing margins to be greater than the paper size.

Please open a support ticket and send us a demo project that reproduces the problem. Test also if the problem occurs with any report or only with such having specific layout or settings in code.

Regards,
Stef
Telerik by Progress

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.