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

MarginRight Property

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

double MarginRight { get; set; }

Property MarginRight As Double

def getMarginRight(self)
def setMarginRight(self, value)
double getMarginRight() throws PrinterException
void setMarginRight(double value) throws PrinterException
function getMarginRight() 
function setMarginRight($value) 
BclPrnResult GetMarginRight(BclPrinter* pPrinter, double* poutVal);
BclPrnResult SetMarginRight(BclPrinter* pPrinter, double newVal);
Property MarginRight As Double

bepprint +WebKit -right <dimension>

Type

Double (inches)

Remarks

N/A.

Example Usage

' VB Sample Code

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

Set oPrintJob = oPrinter.HTMLPrintJob

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

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


// C# Sample Code

Printer printerObj = new Printer();

HTMLPrintJob printJobObj = printerObj.HTMLPrintJob;

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

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