conditionally disable print dialog copies
Hi
I've spent a while thinking about this, but I can't seem to figure out how
to use TppReport.PrinterSetup to
either determine the "calling" report or enable/disable the print dialog
copies based on the "calling report"
More details, Please...
Thanks
Bob.
project first)
I've spent a while thinking about this, but I can't seem to figure out how
to use TppReport.PrinterSetup to
either determine the "calling" report or enable/disable the print dialog
copies based on the "calling report"
More details, Please...
Thanks
Bob.
project first)
This discussion has been closed.
Comments
then place register calls around it to register one dialog or the other.
Otherwise, register the standard print dialog TppPrintDialog. Is this
possible with your code? If you are using templates, then use the
Report.Template.OnLoadEnd event handler to make a check to see if you
should register an alternate dialog or the default dialog form class.
TForm1.btnppReport1Click;
begin
ppReport1.Print; {default print dialog}
end;
TForm1.btnppReport2PrintClick;
begin
ppRegisterForm(TppCustomPrintDialog, TmyNoCopiesPrintDialog);
ppReport2.Print; {uses the custom print dialog with no copies shown}
ppUnRegisterForm(TppCustomPrintDialog);
ppRegisterForm(TppCustomPrintDialog, TppPrintDialog);
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com