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.
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.
thanks for the reply. Now I am facing the issue you pointed out. I do have a RichTextBox that its content length is greater than the RichTextBox height property. As you said the out of view content are chopped off from printing. How can I resolve this issue? thanks.
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.