This is a migrated thread and some comments may be shown as answers.

Unable to print from the print dialog window

4 Answers 226 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 07 Dec 2011, 04:08 PM
Using Telerik 5.1.11.928, .Net 4.0 Full, and the WPF report viewer.  

One single user clicks print in my app.  Print preview comes up.  They click print there.  The printer dialog box comes up.  They select a printer and hit OK.  Nothing happens at all.  The dialog goes away and nothing is printed.  No errors of any kind.  This user can print from all other applications.  We tried printing to the XPS printer as well, same result.

All other users can print just fine (so far).  What could be missing?  Any way to debug/log anything here?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Dec 2011, 10:55 AM
Hi Paul,

We cannot reproduce such an issue on our side. According to the details you provided, the print itself works as the print dialog is opened, which means we have done our part (basically on print from the WPF viewer we call the Print method of the XPS document).
Try exporting the report to XPS document and select print from the XPS print to see whether this works. Additionally if the export fails or the XPS document is for example empty, this can point to a problem with the report XPS generation.

All the best,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Paul
Top achievements
Rank 1
answered on 08 Dec 2011, 05:56 PM
I have more information.

All people who cannot print do NOT have the XPS printer listed in the save drop down so they cannot export to XPS.
All people who cannot print DO have this XPS printer installed and can print to it from other software applications.
When clicking print from the Telerik WPF print preview screen, the XPS printer is listed, but cannot be printed to.
When clicking print from the Telerik WPF print preview screen, all physical printers are listed as well, but cannot be printed to.

Whatever problem is blocking printing is also blocking XPS from showing up in the export list.
0
Paul
Top achievements
Rank 1
answered on 08 Dec 2011, 08:23 PM
Got it.  This was missing.
http://www.telerik.com/community/forums/reporting/telerik-reporting/xamlrendering-dll-missing.aspx

That's the XPS rendering, not the OP.  Odd that Telerik can't print if this is missing, since we were trying to print to an actual printer.  I'd consider that a bug.  Once this was there, the XPS save option was listed, but also all printing functionality worked fine.
0
Steve
Telerik team
answered on 13 Dec 2011, 01:42 PM
Hi Paul,

So according to the additional information, the real problem is that not all necessary assemblies are installed/deployed on all client machines, as the ones on which it worked, did have it. If you have a custom installer, you might want to check for the dlls being deployed.
I've already pointed in my previous post that basically on print from the WPF viewer we call the Print method of the XPS document and for that to work, you would need the XPS rendering extension (Telerik.Reporting.XpsRendering.dll respectively). This information is available in the Deploying WPF Applications help article.

Best wishes,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Steve
Telerik team
Paul
Top achievements
Rank 1
Share this question
or