John wrote: > > Rob Dixon wrote: > > > > John wrote: > > > > > > I want to create a doc file that will contain my text, > > > fonts, sizes as if i wrote manually. > > > > You can use Win32::OLE drive MSWord itself to generate a document, > > but I think that's an awful way to do things. Why not look at > > RTF::Generator which will let you create an RTF file which Word > > will then read happily. > > > My apologies, that should have been RTF::Writer. > > Have you got any relevant code?
Hi John. Something like this? use strict; use warnings; use RTF::Writer; my $rtf = RTF::Writer->new_to_file("demo.rtf"); $rtf->prolog; $rtf->paragraph( \'\b', # Bold \'\ul', # Underline "Title"); $rtf->paragraph; # Blank First Paragraph $rtf->paragraph( "First text paragraph."); $rtf->paragraph( "Second text paragraph", \'\line', "with an explicit line break."); $rtf->close; But you'll be better informed by reading the RTF::Writer POD which includes an RTF primer called RTF::Cookbook. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]