PDA

Click to See Complete Forum and Search --> : open "LPT1" for output as #MyNum??


Nov 27th, 1999, 10:37 PM
ok, i have tried to open the printer port to "manually" print some text or something.

when i used the print # statement with some text, all the printer did was feed one line through without printing a single dot!

any clues?

------------------

Wossname,
Email me: wossnamex@talk21.com :)

Frans C
Nov 28th, 1999, 02:36 AM
I can not reproduce your problem.
This code works fine for me:

Open "lpt1" For Output As #1
Print #1, "Hello World." & vbCrLf
Print #1, "And this is line 2." & Chr(12) '12 = FormFeed
Close #1

Compwiz
Nov 28th, 1999, 06:07 AM
Correction to Frans C: do not use a vbCrLf as it will skip a line (at least on my printer.

Intstead, use a vbCr or Carriage Return like the following:

Print #1, "Hello World." & vbCr

Also, with most printers, you dont need to include a FormFeed.

------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer

chennaisenthil
Apr 21st, 2002, 06:35 AM
Hai
I am also using the print # statement in my application.Now i
want to print some lines in bold character usiung this statement and not printer.print statement which gives a form feed at the end of printer.endDoc statement which i don`t need.Can you help me to print bold characters using print # statement.Most urgent.