Show / Hide Table of Contents

Set page orientation

Set page orientation to landscape

Output: SetPageOrientation.xlsx

public void Run()
{
    var workbook = new Workbook();
    var worksheet = workbook.Worksheets[0];

    worksheet.PageSetup.Page.Orientation = Orientation.Landscape;

    workbook.SaveAs("SetPageOrientation.xlsx");
}
Back to top Generated by DocFX