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

CreatePaper Method

Creates a custom sized paper.

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



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



def CreatePaper(self, PaperName, Width, Height)



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

function CreatePaper($PaperName, $Width, $Height) 



BclPrnResult CreatePaper(BclPrinter* pPrinter,
                         const wchar_t* PaperName,
                         double Width,
                         double Height);
Sub CreatePaper(PaperName As String, _
                Width As Double, _
                Height As Double)

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