PC Review


Reply
Thread Tools Rate Thread

Direct acces to printer or ports

 
 
Pasquale Marcantonio
Guest
Posts: n/a
 
      12th Aug 2004
I do not know how to Address and send Hex codes to a
Printer.

How do you open a printer port in VBA code, so you can
send escape coded commands to a special printed. I send
the hex codes to the printer in my report data, but all I
get is special character printed on the paper.
I know that in some cases you can setup hex codes in the
printer setup, but I need to change the hex codes on the
fly.

Point me in the correct direction.

 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      13th Aug 2004
It is been a long time since I tested this, but you can try:


Open "lpt1:" for output as 1

Print #1,chr$(4) & chr$(27);

close #1

The above code allows you to send chars direct to the printer. I have not
tried this for years now...but give it try.



--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.attcanada.net/~kallal.msn


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i get "direct x error" when using a wizard in acces =?Utf-8?B?Zm1hcnRlbnM5NjU0?= Microsoft Access 0 26th Apr 2006 05:41 PM
Direct acces to desktop =?Utf-8?B?Q3Jpc3RpbmE=?= Windows XP General 1 26th Apr 2005 04:23 AM
direct cable connection via ethernet ports =?Utf-8?B?c3R1bXBlZA==?= Windows XP Networking 5 9th Dec 2004 08:05 PM
Scan disk won't open volume from direct acces Anaoshak Windows XP General 3 6th Jun 2004 09:13 AM
deny users direct acces to tables Fatboyslimro Microsoft Access ADP SQL Server 1 7th Apr 2004 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:15 PM.