Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Not able to print PDF from a windows service |
Post Reply ![]() |
Author | |
Garima.Arya ![]() Beginner ![]() Joined: 15 Feb 10 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 15 Feb 10 at 6:43AM |
I am using trial version of Quick PDF Library to print PDF files from a .net 3.5 windows service running on 64 bit window server 2008 machine. I have written following code to do so: // Create an instance of the class and give it the path to the DLL This code works fine on our dev and QA environment. But when I tried to run it on one of our client machines (I just wanted to ensure that it works there before asking my client to buy this tool), it was not working. It was neither giving any error nor firing the print command on the printer. Please help. Thanks, |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Garima!
Perhaps there are few specialities with the printer name on the client machine? Are you sure using the correct name? Quotations, spaces, ... there can be many problems. Check which are the accessable printers in the environment with QP.GetPrinterNames(). Check what's the name of the standard printer with QP.GetDefaultPrinterName(). Cheers, Ingo |
|
![]() |
|
Garima.Arya ![]() Beginner ![]() Joined: 15 Feb 10 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Thanks Ingo... I checked the printer name and it is same as the one returned by GetPrinterNames() method. I forgot to mention few points that might give you more insight into the problem. Thanks, |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Garima!
Read this: http://www.quickpdf.org/forum/printocument-fails_topic1068_post5003.html?KW=printer+server#5003 Perhaps it helps. Try the advanced searchfunctionality above. You'll find a lot regarding your case. Cheers, Ingo |
|
![]() |
|
Garima.Arya ![]() Beginner ![]() Joined: 15 Feb 10 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Thanks Ingo....I went through the link provided by you. It talks about following problems: 1) Problem while printing large document file. Note that I am trying to print pdf document containing 1 page only. 2) Problem in printing while printer is in spooling mode. This could be the reason but when we tried to test it, printer was not doing any other processing.
However, I would definitly like to implement and test this approach. If possible, please send me the code snippet to do so using c#.
I have also gone through all the thread that have been created so far for "PrintDocument" and "print pdf" related issues. But I couldnot find any solution/pointer. Please direct me if you are talking about any specific thread.
Thanks,
Garima
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store