R
Rodger Fromm
I am currently integrating powerpoint into an application(using vc++ 6 and
Powerpoint 2002, using the msppt.olb) to auto creat a powerpoint file, i am
having one problem though. I have managed to creat the new file, add text
only slides, add text and picture slides(custome graphs), and i have been
able to create new tables. but i can not figure out how to insert tect into
the cells of the slides.
this is where i am at:
/////
_Slide slide1(SlideSet.Add(Position, 11));
Shapes shapes(slide1.GetShapes());
Shape shape(shapes.Item(COleVariant((long)(1))));
TextFrame textFrame(shape.GetTextFrame());
TextRange textRange(textFrame.GetTextRange());
textRange.SetText(DataArr.GetAt(0));//DataArr is my CStringArray
Shape shape2(shapes.AddTable(8,4,100,100,550,400));
Table grid(shape2.GetTable());
....
This is where my problem is. the table creates, but i have been trying to
do everything to get text into the cells of the table, but i can not figure
it out.
Oh how i wish the cell had a set text function
Any help would be more then apreciated, even if it is a recomendation of a
book
Powerpoint 2002, using the msppt.olb) to auto creat a powerpoint file, i am
having one problem though. I have managed to creat the new file, add text
only slides, add text and picture slides(custome graphs), and i have been
able to create new tables. but i can not figure out how to insert tect into
the cells of the slides.
this is where i am at:
/////
_Slide slide1(SlideSet.Add(Position, 11));
Shapes shapes(slide1.GetShapes());
Shape shape(shapes.Item(COleVariant((long)(1))));
TextFrame textFrame(shape.GetTextFrame());
TextRange textRange(textFrame.GetTextRange());
textRange.SetText(DataArr.GetAt(0));//DataArr is my CStringArray
Shape shape2(shapes.AddTable(8,4,100,100,550,400));
Table grid(shape2.GetTable());
....
This is where my problem is. the table creates, but i have been trying to
do everything to get text into the cells of the table, but i can not figure
it out.
Oh how i wish the cell had a set text function
Any help would be more then apreciated, even if it is a recomendation of a
book