Skip to content

Set a fixed column width by using length units in order to print and fill the entire fill area #630

@ghost

Description

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
Print Preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions