Word-Addin and copy &paste

J

John W

Hello foks,

I'm writining a Word (Office 2007) Add-In.
In my code I put data into Office's Word panel Keywords field like below

Microsoft.Office.Interop.Word.Document wordDoc =
Globals.ThisAddIn.Application.ActiveDocument;
Microsoft.Office.Core.DocumentProperties props =
(Microsoft.Office.Core.DocumentProperties)
wordDoc.BuiltInDocumentProperties;

props["Keywords"].Value = "Data into field";

In Word everything seems to okey but when copy Keyword fields data and paste
it into Word document text is in table.

How can get text into Word document without any borders?
Should I set styles to Word's Keywords field or what, anyone have any ideas?

Cheers

J.W
 

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