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

Custom Preview Plugin .. How to change the Icon of the Preview form etc.

edited November 2007 in General
Hi.

Previously I added the rbPrvDlg. pas modified for my needs to the project.

Now you have email buttons and other features I want.

I created a Custom Preview Plugin as in you example to change the Viewers
background colour.
Is this the preferred way of doing it?

How do I change the Previewer forms ICON?
How do I toggle which buttons are visible, depending on the registration
rights of the client .. ie may view, but not save or print etc?

Thanks
Adrian Wreyford
D2007 RB10.07 Enterprise .. registered.

Comments

  • edited November 2007
    I tried:

    procedure TSupaStudPreviewPlugin.BeforePreview;
    begin
    inherited BeforePreview;

    Report.Icon.Assign(Form1.Icon);
    end;

    But this has no effect.?

  • edited November 2007
    Hi Adrian,

    For RB 10, you will need to recreate your preview plugin utilizing the new
    toolbar architecture that was added. Take a look at the ppPreview.pas file
    for an example of how it is created in ReportBuilder, specifically the
    CreateToolbarItems routine. Also, the BeforePreview event may fire too late
    to change the icon, I would recommend changing it earlier (perhaps in the
    PreviewFormCreate event of the report).

    --
    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.