GlobalStartup.InputScripts MethodThe InputScripts method loads the contents a text file into the objects in the ActiveDocument.object.InputScripts (InputFileName) Arguments
RemarksThe file format is very specific. It is best to begin by creating the file using the OutputScripts method.The following example illustrates the use of the InputScripts method. // create the name of the text file to load // 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"; // load the document's scripts from the text file ActiveDocument.wsdot_GlobalStartup.InputScripts(strTemp); Applies To:GlobalStartup ObjectRequirementsThe WSDOT Custom Scripts from the script repository must be loaded into the document. |