Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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.


Comment on Re: "type mismatch" in Word
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
Node Status?
node history
Node Type: note [id://412013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2015-07-04 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls