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

Register/unregister cancel dialog and preview plugin at runtime

edited November 2012 in General

Hi,
it's possibile run the register/unregister commands of a custom dialog
form and a custom preview plug in at runtime based in a particular
condition (not in the initialization/finalization sections) ?

I use ReportBuilder Enterprise 14.04.

Thanks in advance.

Massimo

Comments

  • edited November 2012
    Hi Massimo,

    Yes, the purpose of the registration architecture is to allow the use of
    custom dialogs at any time (before the forms are created).

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2012

    Thank you for the answer Nico.

    I solved my problem that generated an access violation when I executed
    this command not in the initialization/finalization sections:

    ppUnRegisterForm(TppCustomCancelDialog);

    The access violation is generated because RB dosen't had any
    TppCustomCancelDialog form registered after the previous command.

    To solve it simply use the ppPdlg.pas and register the standard RB
    cancel dialog with this command:

    ppRegisterForm(TppCustomCancelDialog, TppCancelDialog);


    I hope those informations will be useful to other programmers.

    Massimo


This discussion has been closed.