|
dxHotPDFExportReportLink DevExpress ExpressPrinting System adapter (
|
FastReport adapter QuickReport adapter ReportBuilder device |
|
DevExpress ExpressPrinting System (XtraPrinting / XtraReports / cxGrid printable links / and similar) PDF export adapter that uses HotPDF as the underlying PDF backend instead of DevExpress's own
Options record: type TdxHotPDFExportOptions = record Title, Author, Subject, Keywords: string; PDFVersion : TPDFVersType; // default pdf17 Compression: TPDFCompressionLevel; // default clDefault RenderDPI : Integer; // default 200 end;
function dxHotPDFDefaultOptions: TdxHotPDFExportOptions;
File-based entry points: function dxHotPDFExportReportLinkToFile( AReportLink: TBasedxReportLink; const AOutputFileName: string; const AOptions: TdxHotPDFExportOptions): Boolean; overload; function dxHotPDFExportReportLinkToFile( AReportLink: TBasedxReportLink; const AOutputFileName: string): Boolean; overload;
Stream-based entry points: function dxHotPDFExportReportLinkToStream( AReportLink: TBasedxReportLink; AOutputStream: TStream; const AOptions: TdxHotPDFExportOptions): Boolean; overload; function dxHotPDFExportReportLinkToStream( AReportLink: TBasedxReportLink; AOutputStream: TStream): Boolean; overload;
Description DevExpress's printing system centers on
This adapter mirrors the loop in DevExpress's own
1. The caller invokes 2. The adapter calls 3. For each page index, it asks the link for 4. A new HotPDF page is added (or the auto-created first page is reused), sized to the computed point dimensions, and the metafile is played via 5.
Options
Typical workflow
dxComponentPrinter1.CurrentLink := cxGridReportLink1; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf');
Or with custom options:
Opts := dxHotPDFDefaultOptions; Opts.Title := 'Q1 Sales'; Opts.RenderDPI := 300; dxHotPDFExportReportLinkToFile(cxGridReportLink1, 'Grid.pdf', Opts);
Supported link families Any descendant of
Capabilities preserved Vector and raster page content emitted by every DevExpress link family (cxGrid, cxScheduler, cxRichEdit, cxPivotGrid, custom links). GDI-resolved text strings (DevExpress renders text via
Limitations of the metafile bridge Because pages are captured as enhanced metafiles, DevExpress-specific PDF features that require structural information (interactive AcroForm fields, named destinations, bookmarks / outlines, PDF/A or PDF/X conformance gates) are not propagated. The output is a faithful visual reproduction of what DevExpress renders, not a structured PDF.
Packaging note The adapter lives in
See also: TfrxHotPDFExport, TQRHotPDFExportFilter, TppHotPDFDevice, THPDFPage.ShowMetafile, Enhanced EMF/WMF Support |