The requested page is not available for the requested platform. You are viewing the content for Default platform.

IExportable.Printable Property

Specifies the IPrintable control of the current List Editor.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

IPrintable Printable { get; }
ReadOnly Property Printable As IPrintable

Property Value

Type Description
IPrintable

An IPrintable control of the current List Editor.

Remarks

The ExportController and PrintingController Controllers use the XtraPrintingLibrary to perform printing and exporting operations under List Editors. This library exposes types that print and export data from the controls that implement the IPrintable interface. So, the PrintingController and ExportController Controllers print and export data only from List Editors that embed a control implementing the IPrintable interface. To access the printable control of the current exportable List Editor, use the Printable property.

It may be required to change the current control to be exported, when implementing a custom IExportable List Editor. In this instance, trigger the IExportable.PrintableChanged event in the Printable property's setter, to notify the ExportController that the ExportController.ExportAction should be updated.

public IPrintable Printable {
    get { return printable; }
    set {
        if(printable != value) {
            printable = value;
            if(PrintableChanged != null) {
                PrintableChanged(this, new PrintableChangedEventArgs(printable));
            }
        }
    }
}
See Also