Article View: comp.lang.pascal.delphi.misc
Article #514Re: Printing is tiny -- why??
From: Kevin C. Killion
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
36 lines
2211 bytes
2211 bytes
Earl F. Glynn <EarlGlynn@WorldNet.att.net> wrote: > Take a look at the Printer Demo #1 program on the Printer > Projects page in my Computer Lab. (Look for "Other > Projects" on the main page). This examples shows how > to print text and graphics (both image and vectors) > on a printer canvas. Other examples in my Computer > Lab show how to draw on a canvas that can be > either the display or the printer. > efg's Computer Lab: http://infomaster.net/external/efg Earl, your examples are ***terrific***! Thanks! With the samples, it was straightforward to figure out how to use some of the exotic calls necessary to do printing. I was well aware that the screen and different printers all have different pixels per inch. What surprised me is that neither Delphi nor Windows insulates the programmer from such low-level concerns. (My background is 15 years of programming on the Mac, which takes WYSIWYG seriously. On the Mac, when I draw a circle one-inch in diameter, it's one inch on the screen and one inch on virtually every printer. So, one routine, without a lot of special casing, can be used to draw on any device, including the screen. On Delphi/Windows, if the form.PixelsPerInch is 96 and I use that to draw a line of 1", it might actually be 1.5" on screen, 1/2 inch on one printer and 1/4 inch on another printer.) Now that I have learned that I have to do the scaling myself, your examples, Earl, taught me *exactly* what I needed to know. I have modified my code and now have good-looking printed reports. Thank you!!!! Kevin Killion
Technical Details
Message-ID:
<kevin-0705981452580001@shs.pr.mcs.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<kevin-0505981108560001@shs.pr.mcs.net> <6invie$a0f@bgtnsc01.worldnet.att.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb0ea,30e76565bbe5307c X-Google-Attributes: gidfb0ea,public X-Google-Thread: 10baee,30e76565bbe5307c X-Google-Attributes: gid10baee,public From: kevin@shsmedia.com (Kevin C. Killion) Subject: Re: Printing is tiny -- why?? Date: 1998/05/07 Message-ID: <kevin-0705981452580001@shs.pr.mcs.net> X-Deja-AN: 351198177 References: <kevin-0505981108560001@shs.pr.mcs.net> <6invie$a0f@bgtnsc01.worldnet.att.net> Organization: Stone House Systems, Inc. Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.vcl.components.using