How to: Use the Simple Link
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.
The result is shown in the following image.
See Also