PasteSpecial through VB.NET

S

Saku7540

Hi All,

I am working on a windows application using VB.NET and Powerpoint 2003
that automates Powerpoint slides generation. Some of the slide information
are in Rich Text Format. I am trying to copy rtf data into clipboard and use
PasteSpecial command to paste into powerpoint shape objest using below lines.
I am getting an error "TextRange (unknown member) : Invalid request. The
specified data type is unavailable." at runtime on the Paste Special command.


Clipboard.SetText(rtfText, TextDataFormat.Rtf
ppShape.TextFrame.TextRange.PasteSpecial(PowerPoint.PpPasteDataType.ppPasteRTF)

Can anybody help me with this issue?

I appreciate your help!

Thanks,
Saku
 

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