Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Different Bitmaps for Buttons

edited August 2009 in General


Hello,

Is there a way, to change the bitmaps in the preview window.

I would like to have bigger, 'print', 'print setup', I have my own bitmaps
that I would like to load.

Many thanks!

Comments

  • edited August 2009
    Hi Edwin,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2009
    Thanks,

    But I would like to know how to load different bitmaps. This accesses
    images that are already loaded by you guys.

    Many thanks.


  • edited August 2009
    Hi Edwin,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2009
    Thanks. That will do the trick.

    One more question, how can I call Report Builder PrintSetup dialog and Page
    setup dialog in 'My Custom Preview Control'?

    Thanks
  • edited September 2009
    Hi Edwin,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.