Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read a multiline file and print it exactly in the same format

Status
Not open for further replies.

rumman

Programmer
Feb 10, 2002
20
US
hi experts,

i was trying to read a text file with more than 25000 lines using VB,displaying it in a Rich Text box in a form, and then trying to print it using the default printer attched to the network.

The problem is, in the rich text box,the lines dont appear in the same format(exact indendation,the columns are not in order)as it appears in a normal text file.Can you suggest some way to make the lines appear in the same format?shall i use some other ActiveX component otherthan rich text box?


thank you for your time

rumman
 
have you tried setting your RTF box control's font to a fixed-width font such as "[tt]Courier New[/tt]?"
 
Rumman, again, you may be better off asking this in one of the 6 VB dedicated forums - I'm not saying don't post anything here, just trying to help you solve your probs by directing you to forums where people may have more knowledge about your problems. I'm sure there are various people in this forum that know VB but it is a VBA forum
HTH
Geoff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top