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
695
how to print preview simple items?
posted

Hi, it's my first time to use Report class.

What i want to achieve is to print preview and/or print a WPF window which basically has rich text box embedded. From the tutorial, I think i have to create a Report, create content for the report then initialize a PrintPreview class with that report.

The problem is the tutorial used xamDataGrid as example. I don't want to use data grid, all i want to display is the content of a rich text box, or even simpler, plain text. How can I do this? Thanks.

Parents
  • 54937
    Verified Answer
    Offline posted

    You can create an EmbeddedVisualReportSection and provide a visual that you want to print. Note, this will just be a snapshop of the elements as they exist so if you had something like a RichTextBox that has scrollable data, you're not going to see anything that is scrolled out of view. The xamDataGrid implements custom logic to handle paging when it is the visual used for an EmbeddedVisualReportSection. 

Reply Children
No Data