diff --git a/Readme.md b/Readme.md index 7a0da04..94f5f95 100644 --- a/Readme.md +++ b/Readme.md @@ -1,19 +1,16 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128595998/23.1.2%2B) [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E2942) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) - -*Files to look at*: -* [MainWindow.xaml](./CS/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/MainWindow.xaml)) -* **[MainWindow.xaml.cs](./CS/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/MainWindow.xaml.vb))** - -# How to create a document sections based on the values, entered by an end-user +# Reporting for WPF - Create a Document Sections Based on the Input Values + +This example illustrates how to generate a document according to user input. To pass specific values to the document's detail section, assign these values to the `e.Data` parameter of the [SimpleLink.CreateDetail](https://docs.devexpress.com/WPF/DevExpress.Xpf.Printing.SimpleLink.CreateDetail) event. As for the report page header (footer) sections, override their `DataContext` that is accessible through the corresponding Link properties. For instance, use the [TemplatedLink.PageHeaderData](https://docs.devexpress.com/WPF/DevExpress.Xpf.Printing.TemplatedLink.PageHeaderData) property to set the data context of a `PageHeader`. -

This example illustrates how to generate a document according to the end-user input. To pass specific values to the document's detail section, you just need to assign these values to the e.Data parameter of the SimpleLink.CreateDetail Event. As for the report (page) header (footer) sections, it is necessary to override their DataContext, which is accessible via the corresponding Link properties. For instance, use the TemplatedLink.PageHeaderData Property to set the data context of a PageHeader.

NOTE: We have a suggestion to enable printing in marginal sections of a document: Links - Provide the capability to define a print template for the TopMargin and BottomMargin areas of a page

+## Files to Review +* [MainWindow.xaml](./CS/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/MainWindow.xaml)) +* **[MainWindow.xaml.cs](./CS/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/MainWindow.xaml.vb))** -