Results 1 to 6 of 6

Thread: Creating text file

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Cool

    I have created a print routibe using Vb printer object. I would like to crate a text fiel using the same means, so the text file would look similiar to the printout. How is this accomplished?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you're printing, it's probably easier to put it into an image - use a PictureBox and save to a file. What sort of formatting is used?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    x y coordinates

    I used the curentx and currenty to place text exactly where I wanted it. Can this be done with a txt file?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4
    Guest
    Use vbTab to set text to where you want.

    Code:
    Print #1, "Hello" & vbTab & "World."
    Or the Tab function.

    Code:
    Print #1, "Hello"; Tab; "World"
    Print #1, "Hello"; Tab(3); "World."

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Cool vbtab

    I have tried using vb tab in the past, but this seems to cause the columns to get misaligned. That is why I was wondering if there was a way to use currentx and currenty like the printer object?

    thanks.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6
    Guest
    Don't think so...however, you can use the String() function to add spaces (without actually typing them).
    Code:
    Print "One" & String(10, " ") & "Two"

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