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 Bold text in Txt file printing

Status
Not open for further replies.

gagdeep

Programmer
Feb 16, 2001
16
IN
I am using VB6 and Access2000. I am making text file by using FSO for dot matrix printing I want to Bold/Italic some text and like to Justify the text.

plz help

thanx
 
Hi,
You'll have to use the VB Printer object to print it, you can't do a huge amount of formting with it but you can open the file and between the file read lines add Printer.FontBold = True
Printer.Print MyTextLine
Printer.FontBold = False

You can also use TAB() as well eg.
Printer.Print TAB(5);MyText1;Tab(30);MyText2

Hope this helps

Regards, Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top