SimpleLink.DetailTemplate Property
In This Article
Specifies the template for the document's detail area.
Namespace: DevExpress.Xpf.Printing
Assembly: DevExpress.Xpf.Printing.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
Use the DetailTemplate property to define a data template for a document's detail area.
You can customize other document areas via the corresponding properties provided by the TemplatedLink class.
- TemplatedLink.TopMarginTemplate and TemplatedLink.BottomMarginTemplate;
- TemplatedLink.ReportHeaderTemplate and TemplatedLink.ReportFooterTemplate;
- TemplatedLink.PageHeaderTemplate and TemplatedLink.PageFooterTemplate.
For more information on document areas, see Printing Links.
#Examples
This example demonstrates how to use the SimpleLink class to print data from a non-hierarchical data source, by using the following approach.
- Create a DataTemplate for a single detail row and assign it to the SimpleLink.DetailTemplate property;
- Then, set the SimpleLink.DetailCount property to the total count of data rows in a data source;
- Handle the SimpleLink.CreateDetail event, and provide data for its CreateAreaEventArgs.Data parameter;
- Call the LinkBase.CreateDocument method to generate report pages.
See Also