I want to print XLS file with “fit to screen”.
I tried but the result will not fit to screen.
I attached my source code (run getimage.aspx)
Following property is not set. output image quality is not good.
sheet.PageSetup.FitToPagesWide = 1;
sheet.PageSetup.PaperSize = PaperSizeType.PaperA4;
sheet.PageSetup.HeaderMargin = 0.7;
sheet.PageSetup.TopMargin = 1.1;
sheet.PageSetup.LeftMargin = 0.9;
sheet.PageSetup.RightMargin = 0.9;
sheet.PageSetup.BottomMargin = 0.8;
sheet.PageSetup.FooterMargin = 0.5;
Thanks in advance