Hi
When I use below code to generate a new workbook, the style of some column looks much more wide. Original in one A4 paper, but in the new workbook, the print preview will show need 2 papers.
Any advise for me, thanks a lot.
foreach (Workbook tmpWorkbook in workbookList)
{
if (tmpWorkbook != null && tmpWorkbook.Worksheets != null && tmpWorkbook.Worksheets.Count > 0)
{
// workbook.Merge(tmpWorkbook.Worksheets[0]);
workbook.Worksheets.Add(tmpWorkbook.Worksheets[0].Name);
workbook.Worksheets[tmpWorkbook.Worksheets[0].Name].Copy(tmpWorkbook.Worksheets[0]);
}
}
BTW: the merge function also has the same problem, workbook.Merge(tmpWorkbook.Worksheets[0])