How to implement custom previewer in end-user application? My custom previewer appears in "normal" application as it should but it doesn't in end-user application when I create a new report.
The previewer wasn't replacable in the report designer. Beginning with RB 6, the previewer is replaceable in the designer as well as in the viewer. Look in ~\RBuilder\Source\ppPreview.pas You can descend from TppCustomPreview or TppPreview to create a custom viewer which shows up in the report designer. Don't forget that you need to unregister the TppPreview and register your new preview class.
Comments
6, the previewer is replaceable in the designer as well as in the viewer.
Look in ~\RBuilder\Source\ppPreview.pas You can descend from
TppCustomPreview or TppPreview to create a custom viewer which shows up in
the report designer. Don't forget that you need to unregister the
TppPreview and register your new preview class.
initialization
TppPreviewPlugin.UnRegister(TppPreview);
TppPreviewPlugIn.Register(TppMyPreview);
finalization
TppPreviewPlugIn.UnRegister(TppMyPreview);
TppPreviewPlugIn.Register(TppPreview);
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com