Pierre-Nicolas,
Thanks, a reminder for me to read release/readme.txt for each release, instead of just relying on
https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/NewFeatures.html to tell me of new features.
A google of shellexecute led me to examples using PrintTo as well as Print, and passing the printer name in using the lpParameters argument.
So I tried ...
CALL ui.Interface.FrontCall("standard","shellexec",[filename,"PrintTo"],ok)
... this runs OK without returning an error. However trying to pass a printer in as the 3rd argument returned a stack error.
What I was really trying to do was control wether the Printer Dialog box appeared. It looks like that it depends on the application that is invoked. For instance with a .html file, the printer dialog box appears, for .pdf, .txt., .csv, the printer dialog box does not appear. I guess that is not something we have control over. Certainly Google showed a number of other developers trying to do the same thing without an obvious solution.
Thanks,
Reuben