Re: Word Automation through Win32::OLE

2004-12-23 Thread Cutter
Jonathan and Jenda, I appreciate you taking the time to run through the basics. I'll make sure to use strict and warnings from now on. I sure hope it saves the time you are suggesting. Sometimes the debugging drives me nuts. The difference between properties and methods is difficult to determine

Re: Word Automation through Win32::OLE

2004-12-22 Thread Jenda Krynicky
From: Jonathan Paton <[EMAIL PROTECTED]> > > print "$fileName\n"; > > $doc->ActiveDocument->SaveAs({FileName => $fileName, > > FileFormat => wdFormatRTF}) > > 'Can't call method "SaveAs" on an undefined value'. > > That clearly means that "$doc->ActiveDocument" evaluates

Re: Word Automation through Win32::OLE

2004-12-22 Thread Jonathan Paton
Dear Mark, > Long time lurker, first time poster...please be gentle. Shame you missed the many comments on strict and warnings. Consider these mandatory whilst learning: use strict; use warnings; I am not familar with Win32::OLE, but there is certainly some errors in your code I can show you.