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

ReadOnly Property

Gets/Sets the flag to indicate whether to open a document as read-only.

bool ReadOnly { get; set; }

Property ReadOnly As Boolean

def getReadOnly(self)
def setReadOnly(self, value)
boolean getReadOnly() throws PrinterException
void setReadOnly(boolean value) throws PrinterException
function getReadOnly() 
function setReadOnly($value) 
BclPrnResult GetReadOnly(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetReadOnly(BclPrinter* pPrinter, BclBool newVal);
Property ReadOnly As Boolean

bepprint +Word -native|-xps -readonly [on|off]

Type:

Boolean

Remarks

N/A.

Example Usage in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.ReadOnly = True
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")
Dim oPrintJob As WordPrintJobEx = oPrinter.WordPrintJobEx
oPrintJob.ReadOnly = True
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in C#

Printer oPrinter = new Printer();
WordPrintJobEx oPrintJob = oPrinter.WordPrintJobEx;
oPrintJob.ReadOnly = true;
oPrintJob.PrintOut(@"C:\test\input.doc", @"C:\test\output.pdf");