Article View: borland.public.cppbuilder.nativeapi
Article #15180Re: One last easy printing question
From: Anthony
Date: Fri, 18 Jul 2003 00:33
Date: Fri, 18 Jul 2003 00:33
37 lines
2130 bytes
2130 bytes
Bob, I tried the following: Printer()->GetPrinter(cDevice, cDriver, cPort, hDeviceMode ); *HPrinterDC = CreateDC(NULL, cDevice, NULL, NULL); LOGFONT lpLogFont; HFONT hfont, hfontPrev; ZeroMemory(&lpLogFont, sizeof(LOGFONT)); hfont= CreateFont( 20,20, // * 0, // angle of escapement 0, // base-line orientation angle FW_NORMAL, // font weight FALSE, // italic attribute flag FALSE, // underline attribute flag FALSE, // strikeout attribute flag OEM_CHARSET, // character set identifier OUT_TT_PRECIS, // output precision CLIP_DEFAULT_PRECIS, // clipping precision 'D'?DRAFT_QUALITY:PROOF_QUALITY, // ** FIXED_PITCH+FF_MODERN, // pitch and family NULL // pointer to typeface name ); hfontPrev = SelectObject(HPrinterDC, hfont); I changed the code in two places (see * and **), and was not able to affect a change in the font. I used 5,5 and 10,10 and 15,15 and 20,20 for height,width sizes. Any additional suggestions would be appreciated and tried? Thanx in advance. Anthony
Technical Details
Message-ID:
<3f17420c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f161c85@newsgroups.borland.com> <3f16278d$1@newsgroups.borland.com> <3f16fde7$1@newsgroups.borland.com> <goeehvgpm7quqs6mgn53en5equ633ifurq@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9d1c7af093dd4f5b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-17 17:48:20 PST From: "Anthony" <awhitesell@attbi.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f161c85@newsgroups.borland.com> <3f16278d$1@newsgroups.borland.com> <3f16fde7$1@newsgroups.borland.com> <goeehvgpm7quqs6mgn53en5equ633ifurq@4ax.com> Subject: Re: One last easy printing question Date: Thu, 17 Jul 2003 20:33:54 -0400 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.128.134.183 Message-ID: <3f17420c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058488844 24.128.134.183 (17 Jul 2003 17:40:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail