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
ExcelPackage无法使用c#在纵向模式下设置Excel工作表。
It is possible! And this is how is have to be made:
workSheetByRight.PrinterSettings.Orientation = eOrientation.Landscape;
Where workSheetByRight is of type - ExcelWorksheet
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.