20 likes | 137 Views
Can you help with this problem? I am trying to use a command line switch to generate a document and there have been difficulties. First ,I have to make sure the document specification works. Starting it from the directory works so I believe the . dsx is set up correctly – true?.
E N D
Can you help with this problem? I am trying to use a command line switch to generate a document and there have been difficulties. First ,I have to make sure the document specification works. Starting it from the directory works so I believe the .dsx is set up correctly – true? Result - The document is generated and has the correct file name.
…And the dxl is modified for the correct path names (see screen shot on previous page for path names),… When using this script retrieved from the forum the results are different. The module attribute is defined per instructions… // Export module using RPE with named RPE Specification /* SJF 2010/07/20 Created This script reads the value of an RPE specification associated with this module from a module attribute. It then invokes RPE launcher which generates the document For this script to function the module needs to have a module attribute called 'RPE Specification' The value of this attribute should be the name of the DSX file associated with the module (without the .dsx extension) If the DSX file is in a subfolder within the RPE specifications folder (defined by string variable 'RPESpecFolder') then the subfolder should be part of the attribute value and these should be separated with a double backslash e.g. m."RPE Specification" should be equal to "Project 01\\Business Requirements" */ // Set the value of RPESpecFolder to point to the folder where your RPE Specifications are stored // This would normally be a mapped drive on a server // Note: double back slashes must be used to separate nested folder names // Note: value must end with a double back slash string RPESpecFolder = "Z:\\RPE Demonstration\\" Module m = current string RPESpecAttrName = "RPE Specification" if(!exists attribute RPESpecAttrName) { ack "Module attribute '" RPESpecAttrName "' does not exist'" halt } string RPESpecName = m.RPESpecAttrName string RPESpecFullName = RPESpecFolderRPESpecName ".dsx" string RPEHome = getenv "RPE_HOME" string LauncherFullName = RPEHome "launcher\\rpe-launcher.exe" system "\"" LauncherFullName "\" -publish " RPESpecFullName "\"" And the results is a blank document without the correct file name. Can anyone spot the problem?