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

CrystalReportViewer selects wrong printer using PrintOuputController dialog

allan11
Explorer
0 Likes
2,222

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

Hi Allan,

R&D suspects it the "/" in the name causing the issue. I renamed my printers and replaced the / with a space and now direct printing using POC is working, it selects the new printer I select in form for the output.

The only limitation is setting the Viewer Print Button to use POC, it still defaults to the first or last printer in the list.

This is I believe by design, P2P does select the printer selected so it could be partially my code causing the problem. Setting the Viewer to use the RAS Object may be the cause, I ran out of time to do more testing.

Don