Question “Is is possible to export jpegs that are gray scaled?” Solution Use the Report.OnFileDeviceCreated event to configure the JPGDevice.Jpeg property. This Jpeg property is of type TJpeg, a Delphi VCL class. All of the image devices share this common architecture. The BmpDevice has a Bitmap property, the MetaFileDevice has a Metafile property, etc. Download: Full Article…
Search the Wiki
How To…Control Image Export File Naming
Question “How can I control the exported image file names?” Solution This example shows how to use the device’s OnPageReceive event to control the image file names. Download: ImageDeviceCustomFileNames.zip Sample Delphi Code: uses ppDevice, ppFileUtils, ppImageDevice; procedure TForm1.ppReport1FileDeviceCreate(Sender: TObject); begin // attach handler to page receive event if (ppReport1.FileDevice is TppImageDevice) then ppReport1.FileDevice.OnPageReceive := ehFileDevice_PageReceive; Full Article…
The primary means by which report output is generated is via a call to the Print method of the report object. 1. Print to Screen The following code would cause the Print Preview form to be displayed and the first page of the report to be presented in this form: uses ppTypes; ppReport1.DeviceType := dtScreen; Full Article…