I'm trying to create a M$ Word doc and populate it with input from a web/cgi/interface. I can open Word, create paragraphs, and save the file to the desired name, but I can't figure out how to insert text into the paragraph objects. The snippet below creates a vanilla Word doc with four lines (paragraphs). Anyone have any ideas? <br><br><FONT FACE=monospace><br>#!perl -w<br>use strict;<br>use Win32::OLE qw(in with);<br>my $file = 'c:\perl\code\wordOut.doc';<br>my($word) = Win32::OLE->new('Word.Application', 'Quit')<br> ¦¦ die "Couldn't run Word";<br>my($doc) = $word->Documents->Add();<br>my ($par1) = $doc->Paragraphs->Add();<br><font color=red># I would like to add text to par1 here</font><br>my ($par2) = $doc->Paragraphs->Add();<br>my ($par3) = $doc->Paragraphs->Add();<br>my ($par4) = $doc->Paragraphs->Add();<br><br>$doc->SaveAs("$file"
;<br></font> <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo