Skip to main content

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

Saves report pages to graphic images on disk.

Declaration

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

Parameters

Name Type
APageIndexes Integer
AGraphicClass TGraphicClass
ADrawBackground Boolean
AFileMask string
AProgressData Pointer
APrepareData Pointer
AReportLink TBasedxReportLink

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