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

MarginTop Property

Sets the top margin. The default margin is 0.25".

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

Type

Double (inches)

Remarks

N/A.

Example Usage

'VB Sample Code

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

Set oPrintJob = oPrinter.IEExtendedPrintJob

oPrintJob.MarginLeft = 1.0
oPrintJob.MarginTop = 1.0
oPrintJob.MarginRight = 1.0
oPrintJob.MarginBottom = 1.0

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


//C# Sample Code

PrinterClass printerObj = new PrinterClass();

IEExtendedPrintJob printJobObj = printerObj.IEExtendedPrintJob;

printJobObj.MarginLeft = 0.75;
printJobObj.MarginTop = 0.75;
printJobObj.MarginRight = 0.75;
printJobObj.MarginBottom = 0.75;

printJobObj.PrintOut("http://www.pdfonline.com/", @"C:\test\output.pdf");