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

Custom previewer in End-user application

edited August 2001 in General
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.

Thank you
Janusz

Comments

  • edited August 2001
    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.

    initialization
    TppPreviewPlugin.UnRegister(TppPreview);
    TppPreviewPlugIn.Register(TppMyPreview);

    finalization
    TppPreviewPlugIn.UnRegister(TppMyPreview);
    TppPreviewPlugIn.Register(TppPreview);


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.