Free Support Forum -

Printing Problem - Fit to Screen Problem


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.Orientation =

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


"I want to print XLS file with “fit to screen”. "
I am not sure if MS Excel does allow this. Could you give us template file (point out the options) and screen shots on how to do it in MS Excel, we will check it soon.

Also, Aspose.Cells will print the sheets based on the print preview settings in MS Excel. You may see the print preview of the source worksheet in MS Excel and check/compare the printable results, they should be same.

Moreover, Please also try Aspose.Cells for .NET v6.0.1.5.