Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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