Back to Devexpress

TdxComponentPrinter.SavePagesAsImagesToDisk(Integer[],TGraphicClass,Boolean,string,Pointer,Pointer,TBasedxReportLink) Method

vcl-dxpscore-dot-tdxcomponentprinter-dot-savepagesasimagestodisk-x28-integer-tgraphicclass-boolean-string-pointer-pointer-tbasedxreportlink-x29.md

latest2.3 KB
Original Source

TdxComponentPrinter.SavePagesAsImagesToDisk(Integer[],TGraphicClass,Boolean,string,Pointer,Pointer,TBasedxReportLink) Method

Saves report pages to graphic images on disk.

Declaration

delphi
procedure SavePagesAsImagesToDisk(const APageIndexes: array of Integer; AGraphicClass: TGraphicClass; ADrawBackground: Boolean; const AFileMask: string; AProgressData: Pointer; APrepareData: Pointer; AReportLink: TBasedxReportLink = nil);

Parameters

NameType
APageIndexesInteger
AGraphicClassTGraphicClass
ADrawBackgroundBoolean
AFileMaskstring
AProgressDataPointer
APrepareDataPointer
AReportLinkTBasedxReportLink

Remarks

The SavePagesAsImagesToDisk calls the EnumPagesAsImages method to obtain report pages for the report link specified by the AReportLink parameter in graphic representation.

The APageIndexes parameter specifies absolute indexes of report pages used in specific events.

The AGraphicClass parameter specifies image type.

Set the ADrawBackground parameter to True to draw the original background within an image.

The AFileMask parameter sets a mask for saved pages. For instance, the ‘Page%d.bmp’ mask results in a ‘Page1.bmp’ file.

The AProgressData and APrepareData parameters determine the pointers to arbitrary data used in the OnExportProgress and OnExportPrepareGraphic events.

See Also

TdxComponentPrinter Class

TdxComponentPrinter Members

dxPSCore Unit