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.
Unfortunately, activation email could not send to your email. Please try again.

Printing from within a Windows Service

Thread ID:

Created:

Updated:

Platform:

Replies:

125397 Aug 12,2016 11:09 AM Aug 16,2016 08:25 AM WPF 1
loading
Tags: PdfViewer
Matthias Schwarz
Asked On August 12, 2016 11:09 AM

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 08:25 AM

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, 
 
Thanks, 
Balasubramanian S 


CONFIRMATION

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.

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.

;