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!

Creating word document & font size

Status
Not open for further replies.

llmclaughlin

Programmer
Aug 20, 2004
140
US
Is there a way with the below code to increase the font size of the Weekly Report text when it is written to the .doc?

sw = File.CreateText(strSrmId & "weeklyreport.doc")
sw.Write(Space(40) + "Weekly Report" + vbCrLf + vbCrLf + vbCrLf)


Thanks

Louie
 
Maybe by using rtf tags and then saving the file as rtf, which can also be opened by Word.

For example the following would display the text Hello world in Tahoma Bold 15

{\rtf1\ansi\deff0 {\fonttbl\f0 Tahoma}{\b \fs30 Hello world}}

Mangro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top