Reply to: troubleshoot saveasPDFSeptember 23, 2011 at 6:14 pm
It would be easiest to debug your script then step through it to see what is failing.
Most of the code that drives this functionality is written in JScript and is contained in this file:
In XMetaL Author Essential or Enterprise the default install location would be here:
C:Program FilesXMetaL 6.0AuthorStartUpmultipleOutput.mcr
If you have a debugger installed (Visual Studio, Microsoft Script Debugger, or other) then when the code hits your debugger statement (that would be “debugger” in JScript, or “Stop” in VBScript — check your language's documentation if you are using another language) then you should be able to step through the code using the UI in your debugger, and it should eventually jump into the multipleOutput.mcr code.