I recommend creating a 'custom preview plug-in' rather than a custom preview form.
A preview plug-in descends from TppPreview. It defines and manages all the UI elements require for preview: Viewer, Toolbar, Outline, Text Search controls etc.
Once you register your custom preview plug-in, it will automatically be used by RB's Preview Dialog and the Preview tab of the Report Designer.
The source code the ancestor is located in ppPreview.pas, the code is heavily commented.
Comments
I recommend creating a 'custom preview plug-in' rather than a custom preview
form.
A preview plug-in descends from TppPreview. It defines and manages all the
UI elements require for preview: Viewer, Toolbar, Outline, Text Search
controls etc.
Once you register your custom preview plug-in, it will automatically be used
by RB's Preview Dialog and the Preview tab of the Report Designer.
The source code the ancestor is located in ppPreview.pas, the code is
heavily commented.
Here is a simple example...
http://www.digital-metaphors.com/rbWiki/Output/Preview/How_To...Add_a_Button_to_the_Preview
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com