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

StampCount Property

Gets the maximum number of stamps supported. Currently this is 4.

Property StampCount As Long

int StampCount

int getStampCount() throws PrinterException

Type

Long (read-only)

Remarks

N/A.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

stampCount = oPDFSetting.StampCount

For I = 0 To (stampCount - 1)

    oPDFSetting.Stamp(I) = True
    oPDFSetting.StampFileName(I) = "C:\test\stamp.bmp"
    oPDFSetting.StampFirstPageOnly(I) = True
    oPDFSetting.StampHPosition(I) = PRN_STAMP_HPOS_CENTER
    oPDFSetting.StampVPosition(I) = PRN_STAMP_VPOS_CENTER
    oPDFSetting.StampZOrder(I) = PRN_STAMP_ZORDER_TOP

Next I

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