Link to home
Start Free TrialLog in
Avatar of pvsbandi
pvsbandiFlag for United States of America

asked on

VBScript to Change the font

Hi,

  I have a text file that has some formatted content.
I want to change the font of this text file using vbscript.
Can someone kindly help with the sample code?
Avatar of ste5an
ste5an
Flag of Germany image

A plain text file has no font information. Please explain your context.
Avatar of pvsbandi

ASKER

Thanks!
It is a text file. When trying to print, the text is wrapping because of the font size. So, the idea is to decrease the font and be able to display the information without wrapping.
How do you print it?
it's the users who print it manually. Letter -> Portrait
I can ask them to change the layout but not everyone knows to do it.
Well, let them use Wordpad or Word.. As long as they print it manually, you cannot do much.
i need to somehow change the text content so it doesn't wrap in certain places
Then you need to reformat it. Insert line breaks after 72 characters.
any example code you can help me with?
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you!