Back to Devexpress

CachedReportSourceBase.PrintingSystem Property

corelibraries-devexpress-dot-xtraprinting-dot-caching-dot-cachedreportsourcebase-cc07be86.md

latest2.3 KB
Original Source

CachedReportSourceBase.PrintingSystem Property

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

Namespace : DevExpress.XtraPrinting.Caching

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[Browsable(false)]
public PrintingSystemBase PrintingSystem { get; }
vb
<Browsable(False)>
Public ReadOnly Property PrintingSystem As PrintingSystemBase

Property Value

TypeDescription
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.

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

var storage = new MemoryDocumentStorage(); 
var report = new MyReport(); 
var cachedReportSource = new CachedReportSource(report, storage); 
cachedReportSource.CreateDocument();
cachedReportSource.PrintingSystem.ExportToPdf("PdfFileName");
vb
Imports DevExpress.XtraPrinting.Caching
'...
Private storage = New MemoryDocumentStorage()
Private report = New MyReport()
Private cachedReportSource = New CachedReportSource(report, storage)
cachedReportSource.CreateDocument()
cachedReportSource.PrintingSystem.ExportToPdf("PdfFileName")

See Also

CachedReportSourceBase Class

CachedReportSourceBase Members

DevExpress.XtraPrinting.Caching Namespace