Register/unregister cancel dialog and preview plugin at runtime
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
This discussion has been closed.
Comments
Yes, the purpose of the registration architecture is to allow the use of
custom dialogs at any time (before the forms are created).
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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