We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing from within a Windows Service

Thread ID:





125397 Aug 12,2016 03:09 PM UTC Aug 16,2016 12:25 PM UTC WPF 1
Tags: PdfViewer
Matthias Schwarz
Asked On August 12, 2016 03:09 PM UTC

Hi Guys!

I have a question about how to print a PDF document using the Syncfusion PDF assemblies (Syncfusion.Pdf.Base and Syncfusion.PdfViewer.Wpf). I already successfully created a PDF document and saved it to a file. The next step would be to load this file into the PdfViewerControl and then either call Print to print it to the default printer or get the PrintDocument from the PdfViewerControl and let it be printed by a PrintDialog. But neither works. In both cases I get an exception saying that no printers are installed.

I know that one should not print directly from within a Windows Service. It is intended that the Windows Service calls another program (something like a print processor) impersonated as another user in a session other than Session 0. But the problem is, that the user has to be logged on permanently and I'm not sure if we can guarantee that.

Can anyone help me understanding what's going wrong or has anyone a solution for this?

Thank you in advance for your suggestions!

Balasubramanian Sundararajan [Syncfusion]
Replied On August 16, 2016 12:25 PM UTC

Hi Matthias, 
Thank you for using Syncfusion Product.  
A support incident to track the status of this query has been created under your account. Please log on to our support website to check for further updates, 
Balasubramanian S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon