Results 1 to 2 of 2

Thread: Print Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344
    Printer.Print "\\lab_techs\c\flag\login.txt"
    Printer.EndDoc


    that prints that line.......how about if i actually wanted to print what was in that text file?
    -RaY
    VB .Net 2010 (Ultimate)

  2. #2
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    Try this

    There must be an easier way for this, but I use this one. Í don't'know if it works with VB 3.0 caus' I'm not familiar with it, but try it; here's the code.

    Code:
        Dim iFile As Integer
          iFile = FreeFile
          Open "filename" For Input As #iFile
          Printer.Print Input(LOF(iFile), iFile)
          Printer.EndDoc
        Close #iFile

    To VB or not to VB, that's the question...

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