Article View: borland.public.cppbuilder.nativeapi
Article #7290Printing - Escape Sequence
From: Thomas J.
Date: Tue, 15 Feb 2005 20:18
Date: Tue, 15 Feb 2005 20:18
18 lines
1623 bytes
1623 bytes
Hello all,
I tried to send escape sequences to the printer, but obviously it is not
possible to put a esacpe sequnce into the method Canvas->TextOut(.,...,
"Line1\nLine2");
Does anyone know how to send escape ssequneces to a printer?
I tried different escape sequences but nothing worked due to the canvas, I
think?!
TPrinter *Prntr = Printer();
Prntr->BeginDoc();
Prntr->Canvas->Font->Size = 12;
Prntr->Canvas->TextOut(200, 600, "Hallo 1 \n and");
Prntr->Canvas->TextOut(300, 700, "Hallo 2 \x0A and");
Prntr->Canvas->TextOut(400, 800, "Hallo 3 \n\r");
Prntr->EndDoc();
Thanks for your help.
Technical Details
Message-ID:
<42125903@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bfc9dd83e27dcf9d,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thomas J." <monathomas@12move.de> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Printing - Escape Sequence Date: Tue, 15 Feb 2005 21:18:11 +0100 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 212.204.13.150 Message-ID: <42125903@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108498691 212.204.13.150 (15 Feb 2005 12:18:11 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail