Hi guys,
when i use SelectPrinter method i need to catch the user response of the selection printer form (e.g. The Ok button or the Undo button ).
Is it possible ??????
thanks :wave:
Printable View
Hi guys,
when i use SelectPrinter method i need to catch the user response of the selection printer form (e.g. The Ok button or the Undo button ).
Is it possible ??????
thanks :wave:
Which version of Crystal? If 8.5, then you need to install a Hot Fix - available on their website.
Welcome to the Forums, goken77.
I have an example in my signature - VB6/CR Print Setup Dialog Ex.
Brucevde, whats the hotfix suposed to fix? I have 8.5 Developer and have no issues with the SelectPrinter method.
I have version 9
thanks for the immediate reply :cool:
Rob, there is no way to know if the user clicked the cancel button on the print dialog screen. Applying the Hot Fix/Service Pack gives you this functionality.
I don't have Crystal on this PC and can't remember all the details. I will try to post more information today.
I think the only way is by checking the Report.PrinterName return but I cant remember correctly. I could do a
quck test today. I'll post back.
Only when the user makes a change and presses the ok button will the report printer properties will be
populated (first time print setup is set). If they press cancel and dont make changes will the report printer properties
will be as they previously were. So, the answer is yes and no.
Sorry guys I steered you wrong. It was a new printer setup method called PrinterSetupEx that gets added with the Hot Fix.
But this new method allow the capturing of the cancel button, correct?
Yes. Simple code is
If ReportObject.PrinterSetupEx(0) = 1 Then
'User Cancelled
End If