Results 1 to 3 of 3

Thread: open "LPT1" for output as #MyNum??

  1. #1
    Guest

    Post

    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: [email protected]

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    I can not reproduce your problem.
    This code works fine for me:
    Code:
    Open "lpt1" For Output As #1
    Print #1, "Hello World." & vbCrLf
    Print #1, "And this is line 2." & Chr(12)  '12 = FormFeed
    Close #1

  3. #3
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    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
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width