🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Clean abort of print job when using TPrinter - I want to prevent the blank page I'm now getting

#8574
From: Lorin Lund
Date: Sun, 17 Oct 2004 03:16
13 lines
1634 bytes
I have a program that generates several reports.  These are presented in
a preview window before printing.  If the user clicks my 'Cancel' button
I call ptr->Abort() (Where ptr is an instanciated instance of 
TPrinter*).  I am getting a blank page kicked out in these cases.  I 
would like to prevent that blank page.

I intantiate the ptr in order to get the metrics for the printer.  I 
will also have called TextWidth() a number of times as well as having 
set the Canvas->Font->Name and Canvas->Font->Size properties by the
time the preview form is displayed.

I want to be able to prevent that blank page from printing when the
user presses 'Cancel' (and I call Abort() ).
Technical Details
Message-ID: <4171e407$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cfd5173a5276b99f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 16 Oct 2004 21:16:23 -0600
From: Lorin Lund <wbs@infowest.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Clean abort of print job when using TPrinter - I want to prevent
 the blank page I'm now getting
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.33.199.24
Message-ID: <4171e407$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097982983 209.33.199.24 (16 Oct 2004 20:16:23 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail