I would like to know how to set up using length units as column width setting units, as I need to ensure perfect filling for printing. The character length does not guarantee that I can fix it in any case.
Reference Code
// Prevent effect coverage.
for (var i = 0; i < leafNodes.Count; i++)
{
worksheet.Column(i + 1).SetAlignment(leafNodes[i].ContentAlign);
// Number of characters
if (leafNodes[i].Width != null)
worksheet.Column(i + 1).Width = leafNodes[i].Width.Value;
}
Print Preview
