Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set zoom level for excel sheet using epplus library?

Tags:

c#

epplus

It looks like very basic thing but i am not able to find property of epplus that allows me to set sheet zoom level. I have tried below property:

workSheet.PrinterSettings.Scale

But it did not set the zoom level of excel sheet. Looking forward for suggestions..

like image 816
Zeeshan Ajmal Avatar asked Feb 17 '16 06:02

Zeeshan Ajmal


Video Answer


1 Answers

You need to access the property via the worksheet View like this:

worksheet.View.ZoomScale = 250;

The above would set it to a scale of 250% in this case.

like image 190
Ernie S Avatar answered Oct 19 '22 02:10

Ernie S