word 2007 add-in creation

D

Dinesh

hello everyone,

Iam using visual c# 2008 and word 2007. now i need to create a add-in that
fires when i open a document in the word application. so my first question is

how to handles the ApplicationEvents2_DocumentOpenEventHandler in the
ThisAddIn_Startup and then in the handler i should read the .xml file and
display in message box.

for example i have a .xml file with the name content.xml in a document
test.docx.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

- <cx:context xmlns:cx="http://www.fit.fhg.de/context/spec1.1/"
cx:docid="860a4b2e-81c0-4320-970a-f927bc053c0b">
<cx:scope cx:initdata="1192198631222" cx:lastvisit="1192198631222"
cx:url="http://saafi.fit.fhg.de/contextbroker/" />
</cx:context>
Now in the eventhandler i have read this .xml file and display the cx:docid
and cx:url content in a message box.

Could anyone help with example code it would be nice. Thank you .

with regards,

Dinesh.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top