Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Allow user to modify a Word document?
Message
De
13/01/2009 12:13:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01372571
Message ID:
01373272
Vues:
27
And I'm begining to wish I didn't :-) Even if by some miracle I find a way to allow the user to edit this document, there is only a 50/50 chance it will work in earlier versions.

Well, this is the problem with implementing interfaces in VFP - Microsoft keeps changing them in each version. So, if you do not know which version is going to be on the client machine, you need to create separate handler classes for each version, and test to see which version of Word is installed on the end-user's machine so that you instantiate the correct version of your event handling object.

I am doing this same sort of thing in C# right now and nice thing about the Visual Studio Tools for Office is that I can just add a reference to Microsoft.Office.Interop.Word for Office 2007 and it will work no matter which version of Word is installed because it is backward compatible.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform