<!–[if gte mso 10]>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
<![endif]–>
Hi,
When you use:
cellsD.setColumnWidthPixel(colD+i, cellsS.getColumnWidthPixel(colS+i));
the value of
cellsD.getColumnWidthPixel(colD+i);
should be same with
cellsS.getColumnWidthPixel(colS+i);
and also be same with
what shown in ms excel or Xcell(in unit of pixels). However, because of the
different default font used by aspose.cells and ms excel or Xcell, the values
of
cellsD.getColumnWidth(colD+i);
cellsS.getColumnWidth(colD+i);
will both be different
from the value shown in ms excel or Xcell.
For ms excel saved html
file, the default font defined in “.style0” in element. When you
save an excel file(such as, create one new workbook then save) to htm by ms
excel, you can find such a definition in the htm file.