Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: "type mismatch" in Word

by esr (Scribe)
on Dec 03, 2004 at 01:07 UTC ( #412013=note: print w/replies, xml ) Need Help??

in reply to "type mismatch" in Word

Thanks for all the comments but I could not get the SaveAs to work as long as I used the <mumble> constant name. When I finally replaced the "wdFormatDocument" with its value of "0" it worked just fine. BTFSPLK! This is on an XP Pro system using Office 2003 and ActivePerl -- if this is helpful to anyone else.

Replies are listed 'Best First'.
Re^2: "type mismatch" in Word
by esr (Scribe) on Dec 03, 2004 at 18:57 UTC
    Well, DUH! After I posted the last item I found the problem. I had included the line
    use Win32::OLE::Const 'Microsoft Excel';
    but I had a typo in the line
    use Win32::OLE::Const 'Microsoft Word';
    However the error message "text mismatch" was certainly not obvious to me as an indicator of the problem. :-(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412013]
[Discipulus]: AM will rulez!
[Corion]: :)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-05-22 08:37 GMT
Find Nodes?
    Voting Booth?