cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CrystalReportViewer selects wrong printer using PrintOuputController dialog

allan11
Explorer
0 Likes
2,237

My client has 2 EPSON LQ-310 printers named A and B installed on computer and reports are set to print on either printer which decided at runtime. Everything works fine if application directly print to printers using RAS API. However, when client first preview the report using CrystalReportViewer control and click print button, the printer select dialog will not set to desired printer A and always selects printer B.

I am using CRforVS SP32 SDK. Print mode of CrystalReportViewer control is set to PrintOutputController and saved printer in report is set to printer A. Report generation is followed to sample app RAS2010_printing.

I had looked through many Q&A and can't solve the problem. Please help.

View Entire Topic
0 Likes

So did you check on the POC before viewing the report and not you can change it in the Viewer properties also:

If I check on POC and then view report I don't get the error but it's not taking the new printer.

It's likely a coding issue in my logic, if you use the POController button it does use the selected printer.

I'll have to do some testing on monday or when I get some time to check my code. It appears it's using the default printer saved in the report and not using th new printer selected in code...

And you are correct, sorry about that, using P2P does appear to use the selected printer.

Don