Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2016-10-24 11:20 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.