PasteSpecial ppPasteDataType.ppPastehtml

G

GS80

hI aLL,

Hopefully someone has encountered this before. I have however found very
little on the subject. I'lm looking to copy some HTML text from the clipboard
and use the pasteSpecial command in a C# .Net application to populate a text
range in Powerpoint. I have the following code which as far as i can see
should work:

myShape.TextFrame.TextRange.PasteSpecial(PpPasteDataType.ppPasteHTML,
Microsoft.Office.Core.MsoTriState.msoFalse, "", 0, "",
Microsoft.Office.Core.MsoTriState.msoFalse);

Everytime i run this though i get an error stating:

The specified value is out of range.

Can anyone shed any light on this and how to resolve my problem. Any help is
greatly recieved.

Thanks in advance,

G
 

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