Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1280
Reporting with a UserControl doesn't create multiple pages.
posted

Hello,

I have been testing the Reporting tools from infragistics.

According to the sample browser it should be possible to print any UIElement.

Therefor I created a UserControl as a template for the layout. And the UserControl contains the XamDataGrid with the data along with some other elements like label, image, border etc.

When I provide the reportObj.Sections with UserControl it only creates one page, and all the data is on one page.

on the other hand if I provide reportObj.Sections with XamDataGrid then it creates multiple pages.

I am aware that I can use a Style for PagePresenterStyle like this:

EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1);
            section.PagePresenterStyle = this.TryFindResource("PagePresenterStyle") as System.Windows.Style;

But that will apply the style on all pages, and that not what I want. Beside I have to provide data for the other items/elements which has to be on the page.

Is this somehow possible to fix ?

Side question: Is it possible to export the report to PDF instead of XPS ??