Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office 2007 breaks word Automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01331039
Message ID:
01331160
Vues:
24
My bad. it should be word.application or word.application.12. I just tested it and it works either way.


John

>John, are you using the code from the Office automation book?. I am using oWord=createobject("word.application",9). Should I be using winWord.application? I get an error "class definition not found" when used.
>Chuck
>
>>>Is anyone having trouble with Word 2007 automation? I am using code from "Microsoft Office Automation with Visual Foxpro. I had no problems with Word2000 or Word2003. I print 2 memo's, one is a cover letter with addressee data inserted. The other inserts the same addressee data and inserts data about a data embedded query using another data source. As I said, this was working great until we upgraded to Office 2007.
>>>
>>>Now I am getting "Word cannot open document as a data or header source because it contains no data." after I have cleared old data. The next process, before the mailmerge execute, I open the headersource (works fine), then I open the datasource and get "File in Use, document is locked".
>>>
>>>No, no one else has the doc open, I checked WinExpl to find the doc closed but a reference to it with the "~" (weird). I have tried different Word objects using parameter 9 and 10, but no difference. Any ideas?
>>>
>>>Chuck
>>
>>Is this the same on any machine? You might try looking in the registry at the application section for Winword. I think if you do a oword=createobject('winword.application') it is supposed to get the lastest install, but you can also get to different versions by adding a number like winword.application.1 . I've heard others say they just reinstalled Office and it worked. I'm using 2007 with no problems in XP and Vista Ultimate.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform