Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: "type mismatch" in Word

by esr (Scribe)
on Dec 03, 2004 at 01:07 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://412013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found