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

PaperSize Property

Sets paper size.

prnVisPaperSize PaperSize { set; }
Property PaperSize As prnVisPaperSize ' WriteOnly
def setPaperSize(self, value)
void setPaperSize(prnVisPaperSize value) throws PrinterException
function setPaperSize($value) 
BclPrnResult SetPaperSize(BclPrinter* pPrinter, BclPrnVisPaperSize newVal);
Property PaperSize As prnVisPaperSize ' WriteOnly
bepprint +Visio -native|-xps -paper <paper>

Type

prnVisPaperSize (write-only)

Remarks

Visio does not use the paper size setting from printer driver. If you need to change the paper size, use this property instead.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oPrintJob = oPrinter.VisioPrintJobEx
oPrintJob.PaperSize = PRN_VIS_PAPER_A4

oPrintJob.PrintOut "C:\test\input.vsd", "C:\test\output.pdf"