This example shows how to print data from the ListView control. The DXPrinting Library is designed to print data that is organized according to the presentation defined in the data templates. The print templates are built-in only for the DXGrid. To print data of any standard control, create a template and use it to print data. For this, use the SimpleLink class.
The data templates in this example are defined for the page header and detail areas of the document (the SimpleLink.PageHeader
and SimpleLink.Detail
properties). The TextEdit controls are used for this purpose, because they have built-in export settings, unlike the regular TextBlock
elements.
- SimpleDataSet.cs (VB: SimpleDataSet.vb)
- Window1.xaml (VB: Window1.xaml)
- Window1.xaml.cs (VB: Window1.xaml.vb)
(you will be redirected to DevExpress.com to submit your response)