Hi @Amjad_Sahi,
Thanks for your answer.
I verified and the same fonts are installed on both machines.
We noticed this problem because we have a comparing tool that compares Word and Excel files (using aspose words and aspose cells) and when generating an excel document on a new machine the comparing tool asserts that the Row Height of most of the documents is different (usually by 1 pixel).
I’ll add the template file used, the base document file and the document generate on the new machine.
When I open them in my laptop (MacOS), all have the row height equal to 15.0 -> 15px. Also, the base doc and generated doc seem equal.
files.zip (42.8 KB)
But when I open them using aspose cells like this:
final Workbook template = new Workbook(“XLSX Single Issue Detail.xlsx”);
final Workbook baseDoc = new Workbook(“DEM-56_sid.xlsx”);
final Workbook genDoc = new Workbook(“DEM-56.xlsx”);
System.out.println(“Template " + template.getWorksheets().get(0).getCells().getRowHeightPixel(0) + " px”);
System.out.println(“BaseDoc " + baseDoc.getWorksheets().get(0).getCells().getRowHeightPixel(0) + " px”);
System.out.println(“GenDoc " + genDoc.getWorksheets().get(0).getCells().getRowHeightPixel(0) + " px”);
System.out.println();
System.out.println("Template " + template.getWorksheets().get(0).getCells().getRowHeight(0));
System.out.println("BaseDoc " + baseDoc.getWorksheets().get(0).getCells().getRowHeight(0));
System.out.println("GenDoc " + genDoc.getWorksheets().get(0).getCells().getRowHeight(0));
I get these outputs:
Template 21 px
BaseDoc 21 px
GenDoc 20 px
Template 15.75
BaseDoc 15.75
GenDoc 15.0
Updating to 19.5 doesn’t change anything.
Do can you reproduce this problem? Do you know why this happens?
Best regards,
Hugo Freixo