🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A5 paper problem with Printer()...

#11442
From: Hans Galema
Date: Wed, 11 Feb 2004 19:24
30 lines
2054 bytes
eugene wrote:

> I'm using printer() function of windows and it works well.

Do you mean: the Printer() function of the VCL ?

> 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 :

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

> Or should i change sth in printer driver?

You should change the printersettings first yes.
You can offer the user of your program that abitity
by including the PrinterSetUpDialog to your program. There the user
can choose the supported paperformat or paperbin. Then
it is the responsobility of the user to put the right paper
in.

You can query PaperHeight and PaperWith to see the dimensions
of the canvas.

Setting the papersize by code will be possible too, but
don't ask me how to do that.

Hans.
Technical Details
Message-ID: <402a8040$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <402a06d7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fef64b246f0c620e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-11 11:41:10 PST
Date: Wed, 11 Feb 2004 20:24:42 +0100
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: A5 paper problem with Printer()...
References: <402a06d7$1@newsgroups.borland.com>
In-Reply-To: <402a06d7$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.108.11
Message-ID: <402a8040$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076527168 129.125.108.11 (11 Feb 2004 11:19:28 -0800)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail