Print Page | Close Window

Problem to print pdf files Vb.net

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=1633
Printed Date: 04 Apr 26 at 11:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem to print pdf files Vb.net
Posted By: Marco
Subject: Problem to print pdf files Vb.net
Date Posted: 09 Nov 10 at 2:11PM

Hello,

I've some problem to print pdf files (of few kb) in Vb.net:

- If i use PrintDocument method, spool file is too big and the printer prints (after some time) the message "Insufficient Memory..File: zedgec.c Line number: 91".
- If i use the PrintDocumentToFile method, the printer is called but doesn't print nothing.
How can i do?

Thanks for the support!



Replies:
Posted By: Ingo
Date Posted: 09 Nov 10 at 4:02PM
Hi Marco!

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, Ingo




Posted By: Marco
Date Posted: 10 Nov 10 at 10:05AM
Originally posted by Ingo Ingo wrote:

Hi Marco!

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, Ingo

Hi,
 
before in my code the method LoadFromFile was between options definition and the PrintDocument..can that command order change something?
 
Thanks



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