473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Send codes to a Printer

JC
How do I send escape codes to the printer

I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get it
to send. Of course this was vb but there should be some method of talking to
a printer.

thanks,
jc
Nov 17 '05 #1
2 2363
JC wrote:
How do I send escape codes to the printer

I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get
it to send. Of course this was vb but there should be some method of
talking to a printer.


I'm not sure if it can actually be used for sending escape codes to a
printer, but if you want to print take a look at the
System.Drawing.Printing namespace. Got to love it! The interface is great.

Max

Nov 17 '05 #2
JC,
Look for topics on printing directly to a printer in either
codeproject.com or C# Corner www.c-sharpcorner.com.
An example would be the article in
http://www.c-sharpcorner.com/Code/20...rintDirect.asp.

Ron Allen
"JC" <st**********@hotmail.com> wrote in message
news:ul**************@tk2msftngp13.phx.gbl...
How do I send escape codes to the printer

I used to be able to do Printer.Print chr$(27) & chr$(71) & "20" and get
it to send. Of course this was vb but there should be some method of
talking to a printer.

thanks,
jc

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ellie | last post by:
I'm stumped. We're building a Struts app running on Websphere on Win2k, with a SQL Server backend. They want pdf files stored in the database; they're in there as Image datatypes. My mission is...
0
by: Samuel Lee | last post by:
Could anyone convert the following vb 6.0 codes into vb.net version? '************************************************************************ '** Button to print a sales receipt - spool print...
1
by: Richard Johnson | last post by:
I am a C++ newbie and am trying to send simple text data to my local printer. My printer is a USB printer and I have tried the following code using my USB port. This code executes but does not send...
3
by: RC | last post by:
I am using docmd.printout to send Reports (formatted as labels) to a barcode label printer. I need to collate the labels so that I print lable 1 twice, then label 2 twice, then label 3 twice, etc....
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
1
by: Hector M Banda | last post by:
Hi all, Need advice on how to send output to a tiket printer using VB2005. I cannot figure out how to send scape sequences to change fonts, etc. I am using a generic printer driver but no luck....
1
by: remya1000 | last post by:
how to send a .txt file to a printer. after creating a .txt file i need to send that .txt file to a printer.using vb.net and while sending that file to printer i need to tell, which printer i need...
2
by: =?Utf-8?B?T2xleGFuZHIgS3JhdmV0cw==?= | last post by:
Harry, Did you find any examples? I just need to make similar functionality and don't know how to start ... Any help will be helpful. Thanks, Olexandr ! "Harry Simpson" wrote:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.