- Code: Select all
sheet.PageSetup.Zoom = False
sheet.PageSetup.FitToPagesWide = 1
sheet.PageSetup.FitToPagesTall = False
But in Spire.XLS, I can not set Zoom to False. It only allows integer 10-400. Do I still need to set this parameter?
The second question is about the margins, for sheet.PageSetup.TopMargin, bottom, left and right, what is the unit? How can I set my margins to excel's narrow?
Thank you.