Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail:
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
DocumentBuilder version: v7.5.0.128
Installation method:
OS: Windows 10
Hello!
I am using document builder v7.5.0.128 installed on Windows 10 / Windows server 2016. I am creating documents using the command line following the documentation like this:
.\docbuilder.exe "--argument{\"name\":\"litro.docx\"}" script.docbuilder
And mi script.docbuilder it’s like this:
builderJS.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph;
oParagraph = Api.CreateParagraph();
oParagraph.SetJc("center");
oParagraph.AddText("Lorem IPSUM");
oDocument.Push(oParagraph);
var nombreArchivo = Argument["name"];
console.log(nombreArchivo);
builderJS.SaveFile("docx", nombreArchivo, "x2t_additons_as_xml");
builderJS.CloseFile();
My problem is: It seems to be working fine because it creates a file after running the command. However when I use in my script var FileName = Argument[“name”]; to retrieve the value of the argument it returns undefined, and I need the value of the argument (in this case “litro.docx”)