🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11438

A5 paper problem with Printer()...

#11438
From: eugene
Date: Wed, 11 Feb 2004 10:41
36 lines
1707 bytes
Hi there,

I'm using printer() function of windows and it works well. Here 
is a part of my code :

Printer()->Title = "My Proggy";
Printer()->BeginDoc();
Printer()->Canvas->Font->Size = 10;
Printer()->Canvas->TextOutA(x,y,"Hello There !");
.
.
.
.
Printer()->EndDoc();

To this point everything works well.But there is a small 
problem, i'm using A5 paper instead of A4.My program works well 
with A4 but when i load an A5 paper it writes but when i load 
second paper, it ejects second printer.Then i get second paper 
and install it again (then works fine again).How can i prevent 
it to eject second paper? Should i add sth to my code like :


(pseudo code) :

Printer()->PaperSize = "A5";  // sth like that??

Or should i change sth in printer driver?
Thanks in advance

Eugene

P.S.  A5 is the half size of A4
A5 is 148 x 210 mm
A4 is 296 x 210 mm
Technical Details
Message-ID: <402a06d7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fef64b246f0c620e,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-11 02:56:36 PST
From: "eugene" <optizyme@hotmail.com>
Sender: "eugene" <optizyme@hotmail.com>
Reply-To: "eugene" <optizyme@hotmail.com>
Subject: A5 paper problem with Printer()...
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 81.215.250.162     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <402a06d7$1@newsgroups.borland.com>
Date: 11 Feb 2004 02:41:27 -0800
X-Trace: newsgroups.borland.com 1076496087 207.105.83.66 (11 Feb 2004 02:41:27 -0800)
Lines: 36
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail