PasteSpecial ppPasteDataType.ppPastehtml

  • Thread starter Thread starter GS80
  • Start date Start date
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
 
Back
Top