Creating chart presentation
Create a chart presentation:
- get the first slide in the current presentation (Api/GetPresentation,
ApiPresentation/GetSlideByIndex);
- set the gradient background (Api/CreateGradientStop,
ApiSlide/SetBackground);
- set the slide title and text in the specified style (Api/CreateShape,
ApiRun/AddText,
ApiParagraph/SetJc,
ApiTextPr/SetFill, ApiTextPr/SetFontFamily,
ApiTextPr/SetFontSize, ApiShape/GetDocContent, ApiSlide/AddObject);
- create a chart and add it to the specified slide (Api/CreateChart, ApiSlide/AddObject)
This sample is available for the C++ and .Net DocBuilder Frameworks.
Download the sample and get more information on the Builder framework samples page.
Resulting document