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 - Print with QuickPDF Lite
  FAQ FAQ  Forum Search   Register Register  Login Login

Print with QuickPDF Lite

 Post Reply Post Reply
Author
Message
Compucents View Drop Down
Beginner
Beginner


Joined: 17 Nov 10
Location: USA
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Compucents Quote  Post ReplyReply Direct Link To This Post Topic: Print with QuickPDF Lite
    Posted: 17 Nov 10 at 12:57PM
Can I print documents with PDF Lite?  My trial ran out on the full version and I need to demo my app to management today.  I'm getting error messages with VB.net 3.5 code using GetDefaultPrinterName and PrintDocument members?  They are in the 7.19 user guide as available functions, but maybe I'm using the wrong syntax?  The PDFLibrary.LoadFromFile() function works OK so it looks like the ActiveX component is installed and registered properly.
 
The error message I get is:  
Public member 'GetDefaultPrinterName' on type 'PDFLibrary' not found. 
 
If I hard code the printer name as a string then the error message goes to:
Public member 'PrintOptions' on type 'PDFLibrary' not found. 
 
If I hard code the printer options as an integer then the error message goes to:
Public member 'PrintDocument' on type 'PDFLibrary' not found. 
 
CODE Example:

Dim PDFLibrary As QuickPDFLite0719.PDFLibrary

PDFLibrary = CreateObject("QuickPDFLite0719.PDFLibrary")
 
PDFLibrary.LoadFromFile(print_document)
PDFLibrary.PrintDocument(PDFLibrary.GetDefaultPrinterName, start_page, PDFLibrary.PageCount, PDFLibrary.PrintOptions(1, 0, "Document"))

PDFLibrary = Nothing


Edited by Compucents - 17 Nov 10 at 1:40PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 17 Nov 10 at 4:07PM
Hi!
 
Try "GetDefaultPrinterName" before and use only the result
with PrintDocument. Perhaps it helps?
 
I'm doing it this way with success:
// . . .
QP.LoadFromFile(Edit1.text);
prName := QP.GetDefaultPrinterName();
prOptions := QP.PrintOptions(2, 0, Edit1.Text);
QP.PrintDocument(prName, p1, p2, prOptions);
// . . .
Cheers and welcome here,
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