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
450
How to fit/scale the contents of a EmbeddedVisualReportSection onto a page?
posted

Hello,

I'm using multiple EmbeddedVisualReportSections to print several controls. The problem is that the contents of e.g. a TextBox can get very large, so I'd like to wrap the lines and, if the vertical space is not enough, overflow on a second page. I can set the TextBox.TextWrapping property, however this only applies to the TextBox itself and not the way the Report renders them on a page. I could use the HorizontalPaginationMode property to scale the content down, but then the TextBox could be scaled down too much. How can I print such controls properly? Or if there are other/better suited solutions, I'd also be open to hear them.

I'm using Netadvantage 13.1 WPF

Thanks

Parents
No Data
Reply
  • 450
    posted

    Since the xamDataGrid implements IEmbeddedVisualPaginator which seems to make printing a bit more flexible, I use the TextBoxes' Text contents as a DataSource for a second xamDataGrid just for printing. This seems to work pretty well, however if one Text is longer than one page, it will just cut off after that page instead of spanning to another one. The HorizontalPaginationMode and PagePrintOrder properties don't seem to have an effect on this. How can I make the xamDataGrid span multiple (vertical) pages?

Children