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!
![]() |
DQPLPrintDocument not work in PDFViewerSDK |
Post Reply ![]() |
Author | |
Marco ![]() Team Player ![]() Joined: 09 Nov 10 Location: Livorno Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() Posted: 04 Apr 16 at 9:31AM |
Hi, I can't print on a custom printer from PDFViewerSDK (last release). I've this problem since December 2015 but no upgrade had solved that. This is sample code I use: **** Dim my_printer As String = AxDPVActiveX1.DQPLNewCustomPrinter(stampantePredefinita) iPrintOptions = AxDPVActiveX1.DQPLPrintOptions(1, 1, System.IO. Path.GetFileName(filePDF)) AxDPVActiveX1.DQPLPrintDocument(my_printer, PrintDialog1.PrinterSettings.FromPage, PrintDialog1.PrinterSettings.ToPage, iPrintOptions) **** I've no errors but I can't print. If I use AxDPVActiveX1.DQPLGetDefaultPrinterName() Print correctly. There is a bug in DQPLNewCustomPrinter ? Can you help me?
Thanks, regards.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Marco,
what's inside stampantePredefinita? It have to be the correct system name of an installed printer. If there's one character wrong it won't work. Use the GetPrinterNames to get the correct names/description of the installed printers. Another point where a prob can be is the used string format: It's unicode. If your prog.language handle strings as strings and not unicode strings then there can be the prob, too. |
|
Cheers,
Ingo |
|
![]() |
|
Marco ![]() Team Player ![]() Joined: 09 Nov 10 Location: Livorno Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
in VB.NET, it's my debug: ***** ?stampantePredefinita "\\pc-bernardoni\HP LaserJet 1022" ?AxDPVActiveX1 .DQPLGetPrinterNames ""PDFCreator","infotec MP 171","Fax","Epson Studi","\\battini-pc\Kyocera FS-1300D KX","\\pc-bernardoni\HP LaserJet 1022","\\pc-lami\HP LaserJet 4 Plus"" ?my_printer "QPLPrinter5763CF00" ****** Then the method: AxDPVActiveX1.DQPLPrintDocument(my_printer, PrintDialog1.PrinterSettings.FromPage, PrintDialog1.PrinterSettings.ToPage, iPrintOptions) don't works
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Marco,
i've done a lot of individual development regarding PDF printing with QuickPDF and it works like a charm ... always ;-) The probs can be the doubled backslash from the net-directory - that's not a real printername! If you're going on your printerpage... what's the name under the printer icons? Try one without the doubled backslash - i think it will work. Rename the one with doubled backslash into normal name - does it work? |
|
Cheers,
Ingo |
|
![]() |
|
Marco ![]() Team Player ![]() Joined: 09 Nov 10 Location: Livorno Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
No, if I rename the one with doubled backslash doesn't work.
Ifcact, at debug before rename I've this: ?my_printer "QPLPrinter4F8856FD" After the change name, I've this: ?my_printer "" And don't work. |
|
![]() |
|
Marco ![]() Team Player ![]() Joined: 09 Nov 10 Location: Livorno Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
If you want, you can also connect on my PC to verify the bug in the libraries.
Thanks, regards.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Marco,
this is a user-user-forum here. Users are helping each other. I'm doing this in my free time - so why should i connect to your pc? For real bugs in the library there's an official page from debenu. |
|
Cheers,
Ingo |
|
![]() |
|
Marco ![]() Team Player ![]() Joined: 09 Nov 10 Location: Livorno Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Thanks a lot Ingo.
The problem is that I have reported this bug in Dicember 2015 and I have not had the solution. And this is a real problem for me... Regards.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Marco,
Please check out this thread. Could be a help for you? http://www.quickpdf.org/forum/getprintername-question_topic1623.html BTW: What's your developement ide? "Dim my_printer As String" looks like VB? ...VB6? You've read that the function needs a unicode string? http://www.debenu.com/docs/pdf_library_reference/NewCustomPrinter.php Perhaps this is the reason for the issue? I've sent an email directly to the publishers of the library regarding your issue... |
|
Cheers,
Ingo |
|
![]() |
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