i am not able to set the sheet properties of an excel workbook using c# code. her is the code.
sheet.PageSetup.PaperSize = XlPaperSize.xlPaperA4;