IBasePrintable.Initialize(IPrintingSystem, ILink) Method
When implemented by a class, initializes a control for report creation.
NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design
void Initialize( IPrintingSystem ps, ILink link )
Sub Initialize( ps As IPrintingSystem, link As ILink )
An object implementing the IPrintingSystem interface used to print a control.
An object implementing the ILink interface which refers to a control.
The Initialize method is invoked before generating a report.
Method arguments specify the IPrintingSystem and ILink objects which are used to print a control. The link argument specifies the link which refers to this control and initiates report creation.
A description of report generation is provided below. It involves using the IPrintable interface which is an IBasePrintable descendant:
- A user invokes report generation by the ILink.CreateDocument method.
- A link knows about the IBasePrintable control to which it refers and calls the Initialize method.
- Next, the IBasePrintable.CreateArea method is called for each section of the generated report. Refer to the Document Sections topic to learn about report section types.