SimpleLink.DetailCount Property
In This Article
Gets or sets the number of times the SimpleLink.CreateDetail event is raised to create the detail area.
Namespace: DevExpress.Xpf.Printing
Assembly: DevExpress.Xpf.Printing.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Int32 | An integer value specifying how many times the detail area should be generated. |
#Remarks
To generate a report, it is necessary to call the LinkBase.CreateDocument method for the SimpleLink object. After that, the SimpleLink.CreateDetail event is raised as many times as specified by the DetailCount property value.
#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