Print Page | Close Window

DQPLPrintDocument not work in PDFViewerSDK

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3300
Printed Date: 29 Sep 24 at 1:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DQPLPrintDocument not work in PDFViewerSDK
Posted By: Marco
Subject: DQPLPrintDocument not work in PDFViewerSDK
Date 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.



Replies:
Posted By: Ingo
Date Posted: 04 Apr 16 at 7:55PM
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



Posted By: Marco
Date Posted: 05 Apr 16 at 9:47AM
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


Posted By: Ingo
Date Posted: 05 Apr 16 at 7:51PM
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



Posted By: Marco
Date Posted: 12 Apr 16 at 3:51PM
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.
 


Posted By: Marco
Date Posted: 12 Apr 16 at 3:53PM
If you want, you can also connect on my PC to verify the bug in the libraries.
 
Thanks,
regards.


Posted By: Ingo
Date Posted: 13 Apr 16 at 10:17PM
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



Posted By: Marco
Date Posted: 14 Apr 16 at 7:46AM
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.


Posted By: Ingo
Date Posted: 14 Apr 16 at 8:52PM
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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk