Microsoft.Office.Interop.Word problem with PasteSpecial() method

P

pran88

Hi All,

I am developing an application (MS Word Add-In) to facilitate the
possibility to copy a certain area (text, table, etc.) in a word document and
paste it in a form of an image. Currentlt I have managed to do this using the
paste data type as Word.WdPasteDataType.wdPasteOLEObject of the Range objects
PasteSpecial() method.

The critical problem is that when i copy text with different font colors the
picture generated appears with some colors missing. ex - a form of red, green
appears as black.

The color appears exactly as it is when I use the data type as
Word.WdPasteDataType.wdPasteHTML or Word.WdPasteDataType.wdPasteRTF. But the
problem is that it does not generate in form of an image.

Is the anyone out there who can assist me in this problem..??????

Thanks in Advance.
 
C

Cindy M.

Hi =?Utf-8?B?cHJhbjg4?=,
I am developing an application (MS Word Add-In) to facilitate the
possibility to copy a certain area (text, table, etc.) in a word document and
paste it in a form of an image. Currentlt I have managed to do this using the
paste data type as Word.WdPasteDataType.wdPasteOLEObject of the Range objects
PasteSpecial() method.

The critical problem is that when i copy text with different font colors the
picture generated appears with some colors missing. ex - a form of red, green
appears as black.

The color appears exactly as it is when I use the data type as
Word.WdPasteDataType.wdPasteHTML or Word.WdPasteDataType.wdPasteRTF. But the
problem is that it does not generate in form of an image.
You do *not* want to use the OLE object as the paste format. That's going to
weigh your documents down with a lot of extra, unnecessary bagage. Have you
tried the wmf or emf formats (graphics)? Those should also be available (they
are in the Paste Special dialog box).

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 :)
 

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