Hi.
We generate PDF from our Genero app. I would like to implement an action so users can print the pdf file to the default local (windows) printer (through GDC). If I go to file manager in windows, find a PDF file, right-click -> Print it will silently print the pdf file on my default printer. That is what I am trying to emulate.
The first part is easy (transfering the file to the client) but the second part is not (printing the file).
The command line "print" (example C:>print mydfile.pdf) command does not work, so what I really need to do is running
"acrord32.exe /t myfile.pdf"
However, I don't know where the acrobat reader is installed on the client so running for example:
call ui.interface.frontCall("standard","execute",["acrord32.exe /t C:\\Users\\Snorri\\Downloads\\prentarar.pdf",1],[ret])
does not work.
call ui.interface.frontCall("standard","shellexec",["C:\\Users\\Snorri\\Downloads\\prentarar.pdf",""],[ret])
opens the pdf file however happily in Acrobat reader. Is it somehow possible to pass an argument to the associated program via shellexec? Any other obvious way to achieve what I'm trying to do?
Thanks in advance,
-Snorri