on ‎2022 Oct 11 9:36 AM
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.
Request clarification before answering.
POC uses what ever printer you select in the Dialog and in code.
P2P uses what is saved in the Report, so if it's not saved it uses the users default printer and it's not adjustable.
Use POC when selecting a new printer.
You can also save the printer in the RPT file, Click on the Print button in CR Designer, select the printer and then save it/Update, don't print the report.
Use that new report and the Viewers print button will use the info saved in the rpt file.
You could like my test app create your own custom print button...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.