Print Page | Close Window

Need help with custom printer

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=754
Printed Date: 17 May 24 at 11:53AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Need help with custom printer
Posted By: mac32bit
Subject: Need help with custom printer
Date Posted: 01 Jul 07 at 2:06PM
Hi all,
 
My printer can print both A4 and A3, the defualt is A4. How can I select to print on A3 paper I am guessing I need to use a custom printer something like:
 
 
    MyPrinter := QP.NewCustomPrinter(QP.GetDefaultPrinterName());
 
// NOT SURE WHAT TO DO HERE
    QP.SetupCustomPrinter(MyPrinter,1,????); 
// NOT SURE WHAT TO DO HERE

    QP.PrintDocument(MyPrinter, 1, MyPageCount, MyOptions);
 
Has anyone done this before who could help out.
 
Many thanks in advance.
 
Mac



Replies:
Posted By: mac32bit
Date Posted: 02 Jul 07 at 11:54AM
Hi
 
Thought others might like to know that I found the answer in windows.pas.
 
DMPAPER_A3      = 8;      // A3 297 x 420 mm
DMPAPER_A4      = 9;      // A4 210 x 297 mm
 
QP.SetupCustomPrinter(MyPrinter,1,8); 
 
Thanks
 
Mac
 
 



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