CrystalReports9
Programmer
Hi
I am viewing cyrstal reports from 'Power Builder' application and using the 'CRViewer' to display the report. The CRViewer has a print button but does not allow the user to change the printers from their default printer.
To overcome the above issue i wrote the script in the 'printbuttonclicked' event the following code for to hide the default CR's 'Printer Setup'
'printbuttonclicked' event
--------------------------
usedefault= FALSE
ole_Report.PrinterSetup(0) --> To popup the WINDOWS Printer Setup)
ole_Report.Printout(False) --> To Hide the default CR's 'Printer Setup')
Question:
-----------
After called the Window's default 'Printer setup' if i click the 'CANCEL' button in the default Window's printer setup window, still my report get printed. (Based on the above code). How to overcome this issue?
Any suggestion Pls....!!!
I am viewing cyrstal reports from 'Power Builder' application and using the 'CRViewer' to display the report. The CRViewer has a print button but does not allow the user to change the printers from their default printer.
To overcome the above issue i wrote the script in the 'printbuttonclicked' event the following code for to hide the default CR's 'Printer Setup'
'printbuttonclicked' event
--------------------------
usedefault= FALSE
ole_Report.PrinterSetup(0) --> To popup the WINDOWS Printer Setup)
ole_Report.Printout(False) --> To Hide the default CR's 'Printer Setup')
Question:
-----------
After called the Window's default 'Printer setup' if i click the 'CANCEL' button in the default Window's printer setup window, still my report get printed. (Based on the above code). How to overcome this issue?
Any suggestion Pls....!!!