Skip to main content
.NET Framework 4.5.2+

IExportable.Printable Property

Specifies the IPrintable control of the current List Editor.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

IBasePrintable Printable { get; }

Property Value

Type Description
IBasePrintable

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