I want to set the paper type and ScaleFactor of worksheet but the code below for papertype and scalefactor does not compile. I would like some help with this.
WorksheetPageSetup pageSetup = wb.ActiveWorksheet.WorksheetPageSetup;
pageSetup.Margins = new PageMargins(25.00, 25.00, 25.00, 25.00);
pageSetup.PaperType = PaperType.Letter;
pageSetup.ScaleFactor = new Size(0.9, 0.9);