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?
Printable View
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?
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 used the curentx and currenty to place text exactly where I wanted it. Can this be done with a txt file?
Use vbTab to set text to where you want.
Or the Tab function.Code:Print #1, "Hello" & vbTab & "World."
Code:Print #1, "Hello"; Tab; "World"
Print #1, "Hello"; Tab(3); "World."
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.
Don't think so...however, you can use the String() function to add spaces (without actually typing them).
Code:Print "One" & String(10, " ") & "Two"