The TppPrintPreview class provides numerous pass-thru properties to the actual buttons in the preview toolbar. Access them using the following technique in the OnPrevewDialogCreate.
uses ppPrvDlg; ---
begin TppPrintPreview(ppReport1.PreviewForm).PrintButton.ImageIndex := ...
You can assing a new image list using the Images property or you can use the global ToolImageList object (which descends from TImageList) and add a new image to it.
If you would like to show the DeviceSettings of the printer (i.e. the driver dialog) you can use the TppPrinterSetup.DeviceSettings property.
If you would like to create and show the Page Setup dialog, take a look at the TppDesignDialogController.ShowPageSetupDialog routine located in the ppDesignDialogController.pas file.
Comments
The TppPrintPreview class provides numerous pass-thru properties to the
actual buttons in the preview toolbar. Access them using the following
technique in the OnPrevewDialogCreate.
uses
ppPrvDlg;
---
begin
TppPrintPreview(ppReport1.PreviewForm).PrintButton.ImageIndex := ...
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
But I would like to know how to load different bitmaps. This accesses
images that are already loaded by you guys.
Many thanks.
You can assing a new image list using the Images property or you can use the
global ToolImageList object (which descends from TImageList) and add a new
image to it.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
One more question, how can I call Report Builder PrintSetup dialog and Page
setup dialog in 'My Custom Preview Control'?
Thanks
If you would like to show the DeviceSettings of the printer (i.e. the driver
dialog) you can use the TppPrinterSetup.DeviceSettings property.
If you would like to create and show the Page Setup dialog, take a look at
the TppDesignDialogController.ShowPageSetupDialog routine located in the
ppDesignDialogController.pas file.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com