Arny
Arny

Reputation:

ASP.net How to Center Exported image in Excel

I have to export some images to excel, To center the images I use a table and colspan=4 to merge four columns of excel file,

when I write a text to excel file it is easily get centered, but for image I tried every possible scenarios, like img algin="center" or and even put it inside a table and , but the result is the same.

any ideas?

Thanks in advance

Upvotes: 1

Views: 439

Answers (1)

Eduardo Molteni
Eduardo Molteni

Reputation: 39413

The problem is that images are not bounded to the cell grid in Excel, they float.
You can't center them even using the Excel interface.

Upvotes: 1

Related Questions