Skip to Content
0

Runtime v13 SP21 - Cannot select a given printer, prints to default one

Dec 10, 2017 at 12:07 PM

23

avatar image
Former Member

Just upgraded to runtime v13 SP21 from SP5 because we had an issue where it would ignore an important font used in the report and use Arial instead.

With Sp21, it would appear that the runtime can now only print to either a printer saved with the report, or the default printer of the computer, but nothing else.

If we don't modify the printer name and just call r.ReportClientDocument.PrintOutputController.PrintReport(), it prints to the saved printer.

If we modify the printer name to a name of a valid existing printer which is different from the saved one, it prints to the computer's default printer. E.g., if there are ten printers installed on the computer, from Printer1 to Printer10, where Printer1 is the computer's default printer and Printer5 is the printer saved with the report, and we call r.ReportClientDocument.PrintOutputController.ModifyPrinterName("Printer8") before printing the report, it will be printed to Printer1. If we call r.ReportClientDocument.PrintOutputController.ModifyPrinterName("Printer5"), thus trying to change the printer to what is already saved in the report, it will correctly print to Printer5. If we try to change the printer name to something non-existent, it will correctly raise an error that the printer name is invalid. But when the name is valid, it would accepts it but print to the default printer anyway.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers