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

EnableMacros Property

Specifies whether all macros are enabled or disabled. It defaults to False, meaning disable all macros. True means enable all macros.

bool EnableMacros { get; set; }

Property EnableMacros As Boolean

def getEnableMacros(self)
def setEnableMacros(self, value)
boolean getEnableMacros() throws PrinterException
void setEnableMacros(boolean value) throws PrinterException
function getEnableMacros() 
function setEnableMacros($value) 
BclPrnResult GetEnableMacros(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetEnableMacros(BclPrinter* pPrinter, BclBool newVal);
Property EnableMacros As Boolean

bepprint +Visio -native|-xps -macros [on|off]

Type:

Boolean

Remarks

The default value is False for security reasons, and also to avoid script errors or pop-up dialogs possibly causing the conversion to fail. If you need to run any macro functions during conversion, set this property to True.

For security reasons you should always disable macros for documents that you do not completely trust, especially on the server side.

Example Usage

'VB Sample Code

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

oPrintJob.EnableMacros = True ' Security risk!

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