Article View: borland.public.cppbuilder.nativeapi
Article #11524Re: How to print
From: Bob Gonder
Date: Fri, 06 Feb 2004 18:47
Date: Fri, 06 Feb 2004 18:47
22 lines
1647 bytes
1647 bytes
George K wrote: >the Epson POS SDK is only responsible for changing fonts and control >characters, not for printing to the Printer() canvas. Are you asking how to print to the DC? static unsigned long printerDy; static unsigned long printerDx; printerDy =GetDeviceCaps(printerDC, VERTRES)/lpp; printerDx =GetDeviceCaps(printerDC,HORZRES)/cpl; ExtTextOut( printerDC, printerDx* position.X, printerDy* position.Y, 0, (RECT*)NULL, string, lstring, (INT*)NULL ); The graphic can use BitBlt or anything else you might use to display on the screen.
Technical Details
Message-ID:
<p9n7201id3ci3lcil993ed8gdbi692ituf@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<402244a6@newsgroups.borland.com> <40234e00$1@newsgroups.borland.com> <40235445$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,420dc770fbbbf5aa X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-06 11:10:16 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to print Date: Fri, 06 Feb 2004 10:47:58 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <p9n7201id3ci3lcil993ed8gdbi692ituf@4ax.com> References: <402244a6@newsgroups.borland.com> <40234e00$1@newsgroups.borland.com> <40235445$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.114 X-Trace: newsgroups.borland.com 1076093282 67.31.164.114 (6 Feb 2004 10:48:02 -0800) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail