We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Table creation with String arrays

Dear Team,

I am using Aspose Word with Java API.

I want to create the table with below string arrays dynamically and place the table at one of the bookmark.

String colNames = {“Emp Name”, “Emp Sal”};

String names[] = {“A”, “B”, “C”,“D”};
String sal[] = {“100”, “200”, “300”, “400”};

Thanks.

Hi Prashanth,

You can use DocumentBuilder.MoveToBookmark method to move to a bookmark as you can see at http://www.aspose.com/docs/display/wordsjava/Bookmarks+in+Aspose.Words and then use the code from these topics http://www.aspose.com/docs/display/wordsjava/Creating+Tables to create a table.

Best Regards,