GlobalStartup.OutputScripts MethodThe OutputScripts method exports the contents of the scripts in the ActiveDocument to a text file.object.OutputScripts (OutputFileName, Display) Arguments
RemarksThe file format is very specific. It is best to begin by creating the file using the InputScripts method.The following example illustrates the use of the OutputScripts method. // Create the name of the text file to export to. // In this case, we make the name of the script file match the name of the // Interactive Reporting file. We also place it in the same folder. var strTemp = ActiveDocument.Path.reverse(); strTemp = strTemp.substr(strTemp.indexOf(".")).reverse() + "js"; // Export the document's scripts to the text file. // ...and don't popup Notepad. ActiveDocument.wsdot_GlobalStartup.OutputScripts(strTemp, false); Applies To:GlobalStartup ObjectRequirementsThe WSDOT Custom Scripts from the script repository must be loaded into the document. |