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!
![]() |
Print with QuickPDF Lite |
Post Reply ![]() |
Author | |
Compucents ![]() Beginner ![]() Joined: 17 Nov 10 Location: USA Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
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