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

OpenDocumentCopy Property

Specifies whether to open a copy of the input document. It defaults to False, meaning the original document is opened. True means a copy of the document is opened.

bool OpenDocumentCopy { get; set; }

Property OpenDocumentCopy As Boolean

def getOpenDocumentCopy(self)
def setOpenDocumentCopy(self, value)
boolean getOpenDocumentCopy() throws PrinterException
void setOpenDocumentCopy(boolean value) throws PrinterException
function getOpenDocumentCopy() 
function setOpenDocumentCopy($value) 
BclPrnResult GetOpenDocumentCopy(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetOpenDocumentCopy(BclPrinter* pPrinter, BclBool newVal);
Property OpenDocumentCopy As Boolean

bepprint +Visio -openCopy [on|off]




The default value is False.

In very rare cases Visio pops up a warning dialog box that reads "You must open the Organization Chart template to use this shape". Conversion is suspended indefinitely until a person clicks the OK button to close this dialog. This dialog is not visible on a server, and therefore it is impossible to click on. This causes conversion to eventually time out and fail, as easyPDF kills Visio.

In order to prevent this dialog from popping up and the conversion error to occur, please set OpenDocumentCopy = True.

Example Usage

'VB Sample Code

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

oPrintJob.OpenDocumentCopy = True ' Open a copy of the input document

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