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

MarginTop Property

Gets/Sets top margin.

double MarginTop { get; set; }

Property MarginTop As Double

def getMarginTop(self)
def setMarginTop(self, value)
double getMarginTop() throws PrinterException
void setMarginTop(double value) throws PrinterException
function getMarginTop() 
function setMarginTop($value) 
BclPrnResult GetMarginTop(BclPrinter* pPrinter, double* poutVal);
BclPrnResult SetMarginTop(BclPrinter* pPrinter, double newVal);
Property MarginTop As Double

bepprint +IE -top <dimension>

Type

Double (inches)

Remarks

N/A.

Example Usage

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

Set oPrintJob = oPrinter.IEPrintJob
Set oIESetting = oPrintJob.IESetting

oIESetting.MarginLeft = 1.0
oIESetting.MarginTop = 1.0
oIESetting.MarginRight = 1.0
oIESetting.MarginBottom = 1.0
oIESetting.Save

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