Free Support Forum - aspose.com

Finding tables in a pptx template

Trying to access tables in a pptx template I have created by parsing the shapes. I find all shapes but the sample in the documentation does not find the table:
Dim tbl As TableEx = Nothing
For Each shpT As ShapeEx In sld.Shapes
If TypeOf shp Is TableEx Then
tbl = CType(shp, TableEx)
Exit For 'found
End If
Next shpT
If Not tbl Is Nothing Then

When usin PowerPoint to edit I notice that the table inserted is not treated in the same way as a shape that exists in a slide layout (e.g. does not have the alt text). So how do I find a template or how do I insert a table so that it is treated as a shape. Using PowerPoint 2007, attached a sample file I try to parse.

Hi Bo Ander,


I have tried to understand the issue shared by you and have accessed the table shared in your presentation using the shared sample project. It is identifying the table in your presentation slide and I have used Aspose.Slides for .NET 6.6.0 on my end for my investigation. Please share, if there is any thing else I may offer you in this regard.

Many Thanks,

Must be a version issue, we have an older version in use.

Hi Bo Ander,


I hope things will work on your end with solution shared. If there is still an issue please feel free to share.

Many Thanks,

Spelling mistake in the code. Sorry for this…