Custom Preview Plugin .. How to change the Icon of the Preview form etc.
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.
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.
This discussion has been closed.
Comments
procedure TSupaStudPreviewPlugin.BeforePreview;
begin
inherited BeforePreview;
Report.Icon.Assign(Form1.Icon);
end;
But this has no effect.?
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com