Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
Is there any good reference available for this kind of scenario?
If multiple version of Word or PPT opened, code should able to handle the automation between the documents irrespective of their version.
I tried interop assemblies which work with one version at a time. But in case there is 2003, 2007, 2010 word documents are opened program should able to create the object for different version. But, in ROT at a time only one version of MS Word will register, that’s what I read.
I have asked many questions regarding this in many forums, but no replies make me o go ahead. At least somebody could tell me why multiple version of automation not possible?
Please note: When I am saying multiple version I am not saying about compatibility of application with different version of MS office in different time.
Posted

1 solution

I am not real clear on what exactly it is you are trying to accomplish, but here goes.

If this is a company application used internally, the IT Admin can configure the Office application to save documents as Office 97-2003 compatible format by default. The 2003 interops generally work with office 2007. (Not sure about 2010 though) However it can be difficult to control if the application is used outside your company.

Regarding interop for multiple versions have a look at this link which appears to address your question:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2b8dd0b3-a0b4-429e-ba64-4de6fdb45b6d/[^]

Regards

[Edit] Another link for you to look at: http://msdn.microsoft.com/en-us/library/dww0e04a.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900