Live SpreadsheetGear API Samples
Page Setup and Printing Samples Zoom and FitToPages
Demonstrates manually setting the Zoom for the printed output of a worksheet, as well as utilizing the "Fit To Pages" feature to have a Zoom value automatically calculate based on the desired width (number of pages across) of the printed contents.
Run This Sample
Download File
Download an Excel Open XML Workbook (*.xlsx) file with the results of this sample.
Related Samples
Page Setup and Printing Samples