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.

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 in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.OpenAndRepair = 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.OpenAndRepair = True
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in C#

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