easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

FitToPagesWide Property

Sets number of pages wide the worksheet will be scaled to.


Long (write-only)

int FitToPagesWide { set; }
Property FitToPagesWide As Integer ' WriteOnly
def setFitToPagesWide(self, value)
void setFitToPagesWide(int value) throws PrinterException
function setFitToPagesWide($value) 
BclPrnResult SetFitToPagesWide(BclPrinter* pPrinter, int Pages);
Property FitToPagesWide As Long ' WriteOnly
bepprint +Excel -native|-xps -fitPagesWide <int>


This property is ignored if the Zoom property is set to True.
Note: To set the value back to default after making modification, specify a value less than 0.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.ExcelPrintJobEx
oPrintJob.FitToPagesWide = 1
oPrintJob.PrintOut "C:\test\input.xls", "C:\test\output.pdf"