in reply to Re: Changing the STDOUT Font for word
in thread Changing the STDOUT Font for word

I'm sorry, I should have made my question more clear. I'm writing to a file with a ".doc. extension, and I was wondering if it was possible to set the font in word to "Arial".

I can write to the file but if I change the font after the fact, then my formatting is lost.

Any ideas?

  • Comment on Re: Re: Changing the STDOUT Font for word

Replies are listed 'Best First'.
Re: Re: Re: Changing the STDOUT Font for word
by Limbic~Region (Chancellor) on Apr 03, 2003 at 00:03 UTC
    Anonymous Monk,
    There have been many nodes here on creating Word documents and modifying existing Word documents. The consensus, as best I can tell, is that you can't easily/effectively create Word documents in Perl because the standards are terrible and vary from version to version. You can check Super Search to see if I missed something. Unless you have found a module I do not know about, it sounds like what you are doing is just opening a file with a .doc extension and writing regular text to it. There is no such thing as changing the font in this regard.

    The alternative is to create a Rich Text Formatted file that can be opened by Word and then automatically converted. This will certainly allow you to change your font. See RTF::Document for details.

    Cheers - L~R