Quan
Quan

Reputation: 502

Shrink into one page with ClosedXML

I create an Excel sheet with ClosedXML, everything looks good now but sometimes the content goes overflow a little bit. To ensure that won't happen, I want to shrink the content into one page no matter what.

So question is: How do I shrink everything into one page with ClosedXML.

Upvotes: 0

Views: 1202

Answers (1)

Quan
Quan

Reputation: 502

worksheet.PageSetup.FitToPages(1, 1);

Upvotes: 1

Related Questions