Very excited about the Aspose.PowerPoint product launch!
However, we’ve run across two problems so far:
I created a test powerpoint file called “test.ppt” using PowerPoint 2002. It is a single slide with two textframes and two placeholders.
Aspose.PowerPoint seems to be detecting the textframes fine, but not the placeholders. Also, the slide count seems weird.
Dim ap As New Aspose.PowerPoint.Presentation(“test.ppt”)
Dim Output As String = “”
For i As Integer = 0 To ap.Slides.Count - 1
Output &= i & " Shapes=" & ap.Slides(i).Shapes.Count & vbCrLf
Output &= i & " Placeholders=" & ap.Slides(i).Placeholders.Count & vbCrLf
Next
MsgBox(Output)
- Page miscount current release of Aspose.PowerPoint doesn’t support incrementally (quick) saved presentations so please turn it off in your MS PowerPoint and this problem will be solved.
- Placeholders your presentation has new style of slide’s id. I added support for that and new hot fix will be published today.
If there are apostrophes (’) or quotes (") in a textframe, the textframe does not show up in the Shapes collection. Likewise, if there is an apostrophe or quote in a textholder, the textholder throws a null reference exception.
Thanks for the report. Small explanation why it happens.
If you write something like this: TextFrame th = pres.Slides[0].Shapes[0] as TextFrame; th.Text = ““Some quoted text””; then it works fine.
But if you write quotes in PowerPoint it doesn’t show frame and placeholders. Right? PowerPoint inserts apostrophes and quotes as unicode characters and use another way to store such text in a presentation file. We will implement it soon with text formatting.