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

OpenAndRepair Property

Gets/Sets the flag to indicate whether to open corrupted document and repair.

bool OpenAndRepair { get; set; }

Property OpenAndRepair As Boolean

def getOpenAndRepair(self)
def setOpenAndRepair(self, value)
boolean getOpenAndRepair() throws PrinterException
void setOpenAndRepair(boolean value) throws PrinterException
function getOpenAndRepair() 
function setOpenAndRepair($value) 
BclPrnResult GetOpenAndRepair(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetOpenAndRepair(BclPrinter* pPrinter, BclBool newVal);
Property OpenAndRepair As Boolean

bepprint +Word -repair [on|off]

Type:

Boolean

Remarks

The default value is False. If this value is set to True, then Word will try to repair the document if it is corrupted. And then if the document is repaired, you will see a repair dialog box and the document itself showing up briefly. If this value is set to False, corrupted documents will not be processed.

Example Usage

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

Set oPrintJob = oPrinter.WordPrintJob
oPrintJob.OpenAndRepair = True

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