This project has moved and is read-only. For the latest updates, please go here.

EPPlus & Scale to Fit

Aug 8, 2011 at 12:51 PM

Hi,

I'm having this trouble, when I generate a long report, save it to the excel file and then try to print it out - the whole thing is trying to fit itself in one page vertically.
I found that to resolve the problem I need to set Scale To Fit -> Height property to "Automatic".

That's that, but is there a way of setting that one automatically through EPPlus? Didn't find a way, any suggestions?
If not, can this feature be requested?

 

Thanks 

Aug 9, 2011 at 1:53 PM

Hi

Set the Worksheet.PrinterSettings.FitToHeight = 0

Jan

Aug 11, 2011 at 7:36 AM

Many thanks to you :)