Hi,
We’ve been trying to include a customized number formatting for slide number of a Powerpoint 2007 presentation using Aspose.Slides for .NET 4.2.0.
This is the scenario:
We have a .pptx file which have five slides with each slide having just a a text box with letters “BBB” and slide number ranging from 1 to 5. (Font-color gray, no border, background-color- white PS: This will vary according to each .pptx file.)
We want to format only the slide number to display a text such as: ‘1 of 5’, ‘2 of 5’, etc for the relevant slide.
What we’re doing presently is reading through each- slide shape to get the shape that has a value equals to the slide position. Then get its dimensions, placement and formatting, and assign it to a rectangular shape which I create to hold the customized formatting. Finally hide the existing page number.
So far we have been successfully able to create the rectangular shape, enter the font style and formatted page number.
But we are unable to get the exact fill-color, font-color and remove the border of the rectangle according to the exsisting.
Please refer the attached code snippet and the exsisting powerpoint.
I have referred the following links but without any success,
http://www.aspose.com/documentation/.net-components/aspose.slides-for-.net/formatting-lines-of-the-shapes-1.html
http://www.aspose.com/documentation/.net-components/aspose.slides-for-.net/managing-multiple-paragraphs-with-multiple-portions-1.html
Also when I try to access font-color property from ShapeStyle, in the existing presentation it returns a null value exception!!!
Awaiting for your suggestions.
Thanks,
Yasindu.