[Stackoverflow] [Progress OpenEdge ABL] How to include OS command with Substitute function in Openedge?

Status
Not open for further replies.
N

NudeDude

Guest
im trying to create an PDF via OS-Command in OpenEdge but i hit an error when i run the script.

*Error : The command "C: \ Program" is either misspelled or could not be found

It works perfectly :

os-command (' "C:\Program Files (x86)\wkhtmltopdf\wkhtmltopdf.exe" "V:\V11\WEB\PDF\Name_01.03.2021_14.09.30_da.html" "V:\V11\WEB\PDF\Name_01.03.2021_14.09.30_da.pdf" ').

However, when i include the command in script and run it then I encounter an error.

This one doesnt work :

define variable cmdcommand as char no-undo. cmdcommand = SUBSTITUTE (' "C:\Program Files (x86)\wkhtmltopdf\wkhtmltopdf.exe"
"V:\V11\WEB\PDF\Name_&1_&2_&3.html"
"V:\V11\WEB\PDF\Name_&1_&2_&3.pdf" ', "01.03.2021", "14.09.30", "da"). os-command value(cmdcommand).

What did i miss here? Can anyone help?

Continue reading...
 
Status
Not open for further replies.
Top