|
Hi,
I am currently working with VSTO for Word and SharePoint 2007.
I have extended the Actions pane to provide me with functionality to browse a SharePoint document library.
Once the user selects the document from the Actions Pane (displayed in a List Box), I want to insert the contents of that document in the current document at the current cursor position.
So far I have been able to read the document from Sharepoint document library in a Stream object.
Where I am struggling is in inserting the contents of the stream object in the current document.
Can anyone lead me in the right direction as to how to insert contents of a document to the current document?
I have seen examples of inserting plain text in the document, but that does not help me as I have a byte[]/stream object to work with.
Any help would be highly appreciated.
Thanks
-Pritam Dahake |