Problem with adding RTF text to the PowerPoint textbox

L

lai

Hi,
I am writing automation code to create PowerPoint file. When I try to add a
textbox to PowerPoint, I found, in the version 2007, CShape.put_RTF()
function will not work. I have tried both VC and also C#. The error message
in VC is: 0x80004001 and the message in C# is:
System.NotImplementedException.
Is this because my code has problem or they really havnt implement the code?
Thanks

Best regards,
part of the code:

//Open powerpoint, get CSlide object and CShapes object...

CShape sTextBox( shapes.AddTextbox( Office::msoTextOrientationHorizontal,
100, 100, 100, 100);

sTextBox.put_RTF(_T("get problem in this line"));
 

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