Print custom page range from Crystal Report Viewer
source link: https://community.sap.com/t5/technology-q-a/print-custom-page-range-from-crystal-report-viewer/qaq-p/13657126
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
4 weeks ago
- last edited
4 weeks ago
We use Crystal Report Viewer 13 SP34 (32-Bit) in a .NET application.
When printing from preview the custom page range does not behave as expected:
Selected Page Range | Result |
any single page value (e.g. 3) | page currently shown in preview window |
single page range (e.g. 3-3) | page currently shown in preview window |
comma-separated selection (e.g. 1,2) | error message "something went wrong" |
combined selection (e.g. 1-2,3) | error message "something went wrong" |
page range selection (e.g. 1-2) | prints range as expected |
Can anyone confirm this problem and is there a solution?
Accepted Solutions (1)
3 weeks ago
Hello,
What printer driver are you using?
My Print Dialog box looks like this:
NOTE, if you are using Microsofts EasyPrint or Redirected Printer option it doesn't work 100%. The printer Driver MUST be installed on the PC that is doing the printing for CR to access the Registry key's for that printer.
I don't recognize that dialog box you posted.
Is it a PDF printer driver? Known issue with those drivers so you may need to contact the makers to get them to fix it.
Answers (2)
2 hours ago
You are welcome...
The P2P API is a legacy mode designed when CR for VS was installed with Visual Studio back in VS6 days.
It's normal behaviour in what is called CR Basic, same as the Embedded report designer, has limited functionality, it uses the printer saved in the Report. You can test this by opening the report in CRD and hit the Print button, select the Printer and save the report. Next time your app should default to that selected printer.
Also the Viewers default printer API is P2P, using the routines in my test app uses the PrintOutputController (POC) and allows your users to select the printer of choice.
yesterday
There were changes done in SP 35, see if that resolves the issue:
https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html
If it still doesn't work need more details:
Are you printing from the Viewer in your app?
Are you printing from the Embedded Report Designer in VS?
Does my printer test app work? Use a report with saved data:
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK