Quantcast
Viewing all articles
Browse latest Browse all 1621

Commented Issue: AutoSizeColumn not working correctly [11661]

Currently using NPOI 1.2.5 to generate Excel 2003 reports from an MVC3 application.

When I use the following lines of code it doesn't autosize the columns correctly.


> for (var i = 0; i < 14; i++)
> {
> worksheet.AutoSizeColumn(i);
> }


Note, although I am merging cells in the output I am not doing so until after the autosize code above has run.

Any help would be appreciated.
Comments: ** Comment from web user: pondomaniac **

Can you give us a picture? Because not sizing correctly is too wide subject.


Viewing all articles
Browse latest Browse all 1621

Trending Articles