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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DQPLPrintDocument not work in PDFViewerSDK
  FAQ FAQ  Forum Search   Register Register  Login Login

DQPLPrintDocument not work in PDFViewerSDK

 Post Reply Post Reply
Author
Message
Marco View Drop Down
Team Player
Team Player


Joined: 09 Nov 10
Location: Livorno
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco Quote  Post ReplyReply Direct Link To This Post Topic: DQPLPrintDocument not work in PDFViewerSDK
    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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Marco View Drop Down
Team Player
Team Player


Joined: 09 Nov 10
Location: Livorno
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Marco View Drop Down
Team Player
Team Player


Joined: 09 Nov 10
Location: Livorno
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
Marco View Drop Down
Team Player
Team Player


Joined: 09 Nov 10
Location: Livorno
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Marco View Drop Down
Team Player
Team Player


Joined: 09 Nov 10
Location: Livorno
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store