Skip to main content

ILink.CreateDocument() Method

If implemented by a class, initiates report generation.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.1.Core.dll


void CreateDocument()


The CreateDocument method initiates report generation.

For instance, the PrintableComponentLink.CreateDocument method generates a report for the custom component that implements the IPrintable interface, in the following order:

  1. Calls the IBasePrintable.Initialize method. It provides a IPrintable control with information on the IPrintingSystem object, which generates the report. It also passes itself as another parameter.
  2. Calls the IBasePrintable.CreateArea method for every report area (section). Refer to the Document Sections topic, to learn about report section types.

Refer to the How to: Create a Custom Link to Print a ListView Control topic, to learn more.

See Also