🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TPrinter Problem

#15115
From: Remy Lebeau (TeamB)
Date: Wed, 16 Jul 2003 03:37
17 lines
1717 bytes
"Anthony" <endurokarter@yahoo.com> wrote in message
news:3f148037@newsgroups.borland.com...

> I was getting the wrong page sizes with:
> (A)
> Printers()->PrinterIndex=x;
> width=GetDeviceCaps(Printers()->Handle, PHYSICALWIDTH);

Did you verify that the PrinterIndex is actually changing correctly after
you assign it?  TPrinter::Handle is dependant on the current PrinterIndex.
If it is not actually being changed correctly, then it is conceivable that
your code really is retreiving the information for the same printer each
time regardless of what you are assigning PrinterIndex to each time.


Gambit
Technical Details
Message-ID: <3f14c72b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f1460f3$1@newsgroups.borland.com> <3f14693d$1@newsgroups.borland.com> <3f1471c0$1@newsgroups.borland.com> <3f147649$1@newsgroups.borland.com> <3f148037@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d59131589fe63384
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-15 20:41:48 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f1460f3$1@newsgroups.borland.com> <3f14693d$1@newsgroups.borland.com> <3f1471c0$1@newsgroups.borland.com> <3f147649$1@newsgroups.borland.com> <3f148037@newsgroups.borland.com>
Subject: Re: TPrinter Problem
Date: Tue, 15 Jul 2003 20:37:10 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f14c72b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058326315 207.175.226.26 (15 Jul 2003 20:31:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail