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

CreatePaper Method

Creates a custom sized paper.

Sub CreatePaper(PaperName As String,
                Width As Double,
                Height As Double)

void CreatePaper(string PaperName,
                 double Width,
                 double Height)

void CreatePaper(String PaperName,
                 double Width,
                 double Height) throws PrinterException

Parameters

Return Values

N/A.

Remarks

This method will just return paper with the same name that already exists, even if its width and height are different than the ones you specified.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oSetting = oPrinter.PrinterSetting
oSetting.CreatePaper "My Custom Paper", 10.0, 10.0
oSetting.LayoutPaperSize = oSetting.GetPaperSize("My Custom Paper")
oSetting.Save