Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 rifling through the Monastery: (14)
As of 2014-09-30 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (378 votes), past polls