This project has moved and is read-only. For the latest updates, please go here.

Setting a consistent row height/column width?

Dec 13, 2012 at 5:22 PM
Edited Dec 13, 2012 at 5:22 PM

I assumed that the following would set the row and column dimensions:

            worksheet.Column(1).Width = 20;
            worksheet.Column(2).Width = 20;
            worksheet.Column(3).Width = 10;
            worksheet.Column(4).Width = 25;
            worksheet.Column(5).Width = 25;
            worksheet.DefaultRowHeight = 15;

Instead, my rows are coming out as height of 10, and the columns are smaller than what I've set. What am I doing wrong?