Article View: borland.public.cppbuilder.nativeapi
Article #12536Re: Windows Printers
From: Bob Gonder
Date: Tue, 02 Dec 2003 01:27
Date: Tue, 02 Dec 2003 01:27
30 lines
2436 bytes
2436 bytes
John Scott wrote:
>The problem is that I need to print on both sides of the card. Once I have
>printed the first side how do I get it to change to the second side so that
>i can print the second page?
If you have duplexing turned on, doesn't the printer print the second
page on the back by itself? ie.
StartPage()
Print("PageOne");
EndPage()
StartPage()
Print("Page Two");
EndPage();
Yes, reading the PCL5 manual, page 4-12 shows
Esc & a # G
which is not what you want. That command ejects the current paper and
moves to either the front of the back of the next sheet. So, if you
tried to use that to print the second side after printing the first,
you would end up with two sheets, one printed on the front only, the
other on the back only.
On page 4-6 is the command
Esc & l # S
which selects Simplex, Duplex-Long or Duplex-Short, which are the same
options as are available in the DEVMODE.
I'm pretty sure setting the DEVMODE for duplex and printing with the
above outline will get you your results.
Note that if the printer doesn't support duplex, you will print two
cards, one with the front info, and one with the back.
Technical Details
Message-ID:
<eipnsvs99q92prau97tl685lua6crv6e92@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fbcf9c2@newsgroups.borland.com> <3fbd8132$1@newsgroups.borland.com> <3fc77301@newsgroups.borland.com> <3fc7e524$1@newsgroups.borland.com> <3fca2474@newsgroups.borland.com> <3fcb2567$1@newsgroups.borland.com> <3fcb6984@newsgroups.borland.com> <goumsvolftvangoh1n8i7ktptavi57ut2d@4ax.com> <dsvmsvo53afn3qqk6p2ir6ld5lldimucju@4ax.com> <3fcb93d8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7b2449597708bec X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-01 17:39:18 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Windows Printers Date: Mon, 01 Dec 2003 17:27:26 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <eipnsvs99q92prau97tl685lua6crv6e92@4ax.com> References: <3fbcf9c2@newsgroups.borland.com> <3fbd8132$1@newsgroups.borland.com> <3fc77301@newsgroups.borland.com> <3fc7e524$1@newsgroups.borland.com> <3fca2474@newsgroups.borland.com> <3fcb2567$1@newsgroups.borland.com> <3fcb6984@newsgroups.borland.com> <goumsvolftvangoh1n8i7ktptavi57ut2d@4ax.com> <dsvmsvo53afn3qqk6p2ir6ld5lldimucju@4ax.com> <3fcb93d8@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.179.38 X-Trace: newsgroups.borland.com 1070328445 67.31.179.38 (1 Dec 2003 17:27:25 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail