Custom Print Dialog
Hi,
I am trying to create a custom print dialog and am having trouble
following the posted instructions. I am running Delphi5 with RB 6.03.
I located the pppDlg.pas file in the ...\source folder. I opened and
saved it with a different name (myPrintDialog) under my project folder.
I added the new unit to my project but when I click the printer icon on
the report preview screen I still get the original printer dialog. What
am I missing?
Thanks,
Dexter
I am trying to create a custom print dialog and am having trouble
following the posted instructions. I am running Delphi5 with RB 6.03.
I located the pppDlg.pas file in the ...\source folder. I opened and
saved it with a different name (myPrintDialog) under my project folder.
I added the new unit to my project but when I click the printer icon on
the report preview screen I still get the original printer dialog. What
am I missing?
Thanks,
Dexter
This discussion has been closed.
Comments
Be sure you are registering your new print dialog in the initialization
section of the file.
example:
ppRegisterForm(TppCustomPrintDialog, TmyPrintDialog);
Below is a link to an example of this...
http://www.digital-metaphors.com/tips/CustomPrintDialog.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your help.
I have at the bottom of MyPrintDialog.pas
initialization
ppRegisterForm(TppCustomPrintDialog, TmyPrintDialog);
finalization
ppUnRegisterFrom(TppcustomPrintDialog);
Is this where is should be located?
Thanks,
Dexter
In article <41b07e13$1@dm500.>, "Nico Cizik \(Digital Metaphors\)"