1

I wanted to generate Excel sheets from C#, so I used the ExcelPackage libraries to do so. Everything works fine and I am able to generate and download the sheet.

The last thing I want to achieve is setting the sheet from Portrait to Landscape mode. Is there a way to do this, using ExcelPackage? I tried searching the documentation, but didn't find anything.

Thanks

4

2 回答 2

0

ExcelPackage 无法使用 c# 在纵向模式下设置 Excel 工作表。

于 2013-11-07T14:44:58.607 回答
0

有可能的!这就是必须要做的:

 workSheetByRight.PrinterSettings.Orientation = eOrientation.Landscape;

workSheetByRight 的类型在哪里 - ExcelWorksheet

于 2015-01-13T10:16:26.823 回答