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

Free Support Forum - aspose.com

Image and text in a table column

Hello,

I need to add an image and some text value next to each other with in table columns.
What is the best approch to do this?
Please advice.

Thanks
Hemanth



Dear Hemanth,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You will use a normal table. However, if you add an image or any other shape inside the table cell, then you will have to adjust the cell’s width and height yourself. You can adjust it using the Table.setColumnWidth and Table.setRowHeight property.

This is because, table cells don’t auto resize if their contents are other than text.

Thanks for the reply.

I need to add the image and text into the same column.

I was thinking of treating each cell as a rectangle, add picture first and then textframe to the same rectangle. Is that's the best approach ?

Thanks

Hemanth

Hello,

I tried adding image and text to a cell within a table, but I was not able to accomplish it.

Could you give me some suggestions or examples etc.

Thanks

Hemanth