VSTO 2005 and Word Action Pane

P

Pritam Dahake

Hi,
I am trying to use the Action pane to insert into a document the contents of
another document.
So far I have been able to get the Actions Pane to work fine. I have the
contents of the other document which I want to insert in a "Stream" object.
Can anyone help me as to how I can insert the contents of this stream into
the current document at the current cursor position??

Thanks in advance,
-Pritam
 
C

Cindy M.

Hi =?Utf-8?B?UHJpdGFtIERhaGFrZQ==?=,
I am trying to use the Action pane to insert into a document the contents of
another document.
So far I have been able to get the Actions Pane to work fine. I have the
contents of the other document which I want to insert in a "Stream" object.
Can anyone help me as to how I can insert the contents of this stream into
the current document at the current cursor position??
Word isn't designed to handle "streams", except in the form of its own, native
XML vocabulary. In that case, you can use the XML property to get the XML from
one document and the InsertXML method to put it into a different one...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
P

Pritam Dahake

Cindy,
Thanks for the quick reply.
Do you have any sample code or any resources I could look at to find out how
to read word document in XML format and insert it into another document?

Thanks
-Pritam
 

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