Article View: borland.public.cppbuilder.nativeapi
Article #7118Re: Printing Speed
From: JD
Date: Sat, 12 Mar 2005 11:43
Date: Sat, 12 Mar 2005 11:43
47 lines
2835 bytes
2835 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: > >> I've been considering moving away from TPrinter [...] > Shouldn't be hard unless you are doing fancy charts and > graphs. (Or whatever is it that TPrinter is so good at.) After using the VCL for a while, you get familure with working with a TCanvas and the TPrinter has a TCanvas so printing uses the same functions that one would use draw text on a control or a graph in a bitmap. It also has functions that draw shapes and lines and copies blocks of pixels from one Canvas to another. Once the Canvas is set, you print it by using NewPage or EndDoc. See, the thing that got me starting this thread was a test that I did. I generated a bitmap that had text and a pic and printed that using TPrinter::Canvas. When I put the litteral text into WordPad and added the pic, it printed slower than the Canvas test. Without the pic, they print about the same so I'm assuming that WordPad could be better optimized when printing graphics (and that bandwith has nothing to do with it). So ... if one print method can be faster than another, then why can't there be another, faster method and how do I know when I've maxed it out? >I've already posted almost all my printer code in this group. And I've read every one with a subject related to printing. >(I just print text, but allowing for 132 columns in portrait mode took >a bit of figuring) I've got one job that prints proofs for product labeling. That took quite a bit since the user does nothing but enter text for variouse sections. I have to select font sizes that maximize the space on the template and accounts for wordwrap with, with, with, (can't think of the name for it) the thing that produces both right and left justified, evenly spaced text. And then there's different number of labels per sheet, 1up, 2up, 4up ect.. That's a huge block of code. ~ JD
Technical Details
Message-ID:
<4232d5c7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<422e0600$1@newsgroups.borland.com> <422e069d$1@newsgroups.borland.com> <nh9u21dnhu891k0ntan3rfscafc68deda1@4ax.com> <42313c84$1@newsgroups.borland.com> <4lf331dp7gsqvddkdr59j67nbkiehib3il@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eee7bb1b529382b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Printing Speed Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.168.125.12 References: <422e0600$1@newsgroups.borland.com> <422e069d$1@newsgroups.borland.com> <nh9u21dnhu891k0ntan3rfscafc68deda1@4ax.com> <42313c84$1@newsgroups.borland.com> <4lf331dp7gsqvddkdr59j67nbkiehib3il@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4232d5c7$1@newsgroups.borland.com> Date: 12 Mar 2005 03:43:03 -0800 X-Trace: newsgroups.borland.com 1110627783 207.105.83.66 (12 Mar 2005 03:43:03 -0800) Lines: 48 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail