# Creating Tables Using VSTO and Aspose.Slides for Java

> Migrate from Microsoft Office automation to Aspose.Slides for Java and create tables in PowerPoint (PPT, PPTX) slides in Java with flexible formatting.

Source: https://docs.aspose.com/slides/java/creating-a-table-on-powerpoint-slide/
Updated: 2026-08-13


{{% alert color="info" %}} 

Tables are widely used to display data on presentation slides. This article shows how to create a 15 x 15 table with a font size of 10 programmatically using first [VSTO 2008](/slides/java/creating-a-table-on-powerpoint-slide/) and then [Aspose.Slides for Java](/slides/java/creating-a-table-on-powerpoint-slide/).

{{% /alert %}} 
## **Creating Tables**
### **VSTO 2008 Example**
The following steps add a table to a Microsoft PowerPoint slide using VSTO:

1. Create a presentation.
1. Add an empty slide is added to the presentation.
1. Add a 15 x 15 table to the slide.
1. Add text to each cell of the table with a font size of 10.
1. Save the presentation to disk.



{{< gist "aspose-com-gists" "a56eda38c01ad33dc653116c7bae4293" "Examples-CSharp-VSTO-CreateTableUsingVSTO-CreateTableUsingVSTO.cs" >}}
### **Aspose.Slides for Java Example**
The following steps add a table to a Microsoft PowerPoint slide using Aspose.Slides:

1. Create a presentation.
1. Add a 15 x 15 table to the first slide.
1. Add text to each cell of the table with a font size of 10.
1. Write the presentation to disk.



{{< gist "aspose-com-gists" "1f55f0222bc39a382d831900e8de7400" "Examples-src-main-java-com-aspose-slides-examples-Slides-Table-CreateTable-CreateTable.java" >}}



## Related articles

- [Migration from Microsoft Office Automation to Aspose.Slides for Java](https://docs.aspose.com/slides/java/migration-from-microsoft-office-automation-to-aspose/)
- [Format Text Using VSTO and Aspose.Slides for Java](https://docs.aspose.com/slides/java/format-text-using-vsto-and-aspose-slides-for-java/)
- [Adding Text Dynamically Using VSTO and Aspose.Slides for Java](https://docs.aspose.com/slides/java/adding-text-dynamically-using-vsto-and-aspose-slides-for-java/)