Article View: borland.public.cppbuilder.nativeapi
Article #7962Re: Print TCanava problem
From: Remy Lebeau (TeamB)
Date: Thu, 09 Dec 2004 20:20
Date: Thu, 09 Dec 2004 20:20
24 lines
1567 bytes
1567 bytes
"hans galema" <notused@notused.nl> wrote in message
news:41b8b0cf$1@newsgroups.borland.com...
> For every page you need a BeginDoc()/EndDoc().
Actually, for each new page, you need to call the NewPage() method instead:
TPrinter *APrinter = Printer();
APrinter->BeginDoc();
// print page one...
APrinter->NewPage();
// print page two...
APrinter->NewPage();
// print page three...
// and so on...
APrinter->EndDoc();
Begin/EndDoc() just tell the printer that you are beginning/ending a new
printing session. Each individual page should not have its own calls to
Begin/EndDoc(), unless you really are printing different sessions.
Gambit
Technical Details
Message-ID:
<41b8b399@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41b8acd7$1@newsgroups.borland.com> <41b8b0cf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,da818c8ad7ca335 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b8acd7$1@newsgroups.borland.com> <41b8b0cf$1@newsgroups.borland.com> Subject: Re: Print TCanava problem Date: Thu, 9 Dec 2004 12:20:59 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41b8b399@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102623641 68.69.17.41 (9 Dec 2004 12:20:41 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail