danny kario
Posts: 32
Joined: 2007-10-30
|
Hi,
question:
im writing a console program (NOT ! addin) that need to work on office documents (put some tagging in word,xls,ppt). the documents can be of ANY word version - office2000-office2007.
question is - how do i build such a project ? that is - its not an addin, but program (console, win32)
Thanks in advance & best
danny |
|
Eugene Astafiev
Guest
|
Hi Danny,
You need to add a reference (generate an interop assembly) to a host application. Then in the code create an instance of the host application and work on your own with it. |
|
danny kario
Posts: 32
Joined: 2007-10-30
|
Hi,
just to verify - refernce to the "native" office application, not your libs/dll. right ?
+
q: if i refernce to office 2007 dll, and put the application in a computer with other version (say office 2000) - will it still work ? shouldn't i use your libs instead ?
tnx&best
danny |
|
Eugene Astafiev
Guest
|
Hi Danny,
Yes, see the COM tab of the Add Reference window.
It won't be able to work on earlier versions of the Office. You may try to use Add-in Express generated interop assemblies.
To improve your skills you can read the following http://www.codeproject.com/KB/office/automate_word.aspx. |
|