Skip to main content
A newer version of this page is available. .

CachedReportSourceBase.PrintingSystem Property

Provides access to the Printing System associated with the cached document.

Namespace: DevExpress.XtraPrinting.Caching

Assembly: DevExpress.Printing.v19.2.Core.dll

Declaration

[Browsable(false)]
public PrintingSystemBase PrintingSystem { get; }

Property Value

Type Description
PrintingSystemBase

A PrintingSystemBase instance that provides print and export capabilities for the cached document.

Remarks

The following code demonstrates how to use the PrinitngSystem object provided by this property to export the generated report document in code.

using DevExpress.XtraPrinting.Caching; 
//... 

var storage = new MemoryDocumentStorage(); 
var report = new MyReport(); 
var cachedReportSource = new CachedReportSource(report, storage); 
cachedReportSource.CreateDocument();
cachedReportSource.PrintingSystem.ExportToPdf("PdfFileName");
See Also