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

Free Support Forum - aspose.com

Not working setHeight

Hi,
I am setting height of a row. Some time it is working fine but some cases not working. the code is

row.setHeight(128);

Thanks.

Hi,

Well, I could not find the issue, following is my test code which works fine.

Sample code:

//Instantiating a Workbook object

Workbook workbook = new Workbook();



//Opening the Excel file

workbook.open(“e:\test\book1.xls”);



//Accessing the first worksheet in the Excel file

Worksheet worksheet = workbook.getWorksheets().getSheet(0);

Cells cells = worksheet.getCells();


Row row = cells.getRow(1);
row.setHeight(128);



//Or you may use the following
//Setting the height of the second row to 128
// cells.setRowHeight(1, 128);

workbook.save(“d:\files\output.xls”);


I am using the attached latest version/fix v2.2.0.2, please try it.

If you still find the issue, please create a demo code to show the issue, we will check it soon.

Thank you.