You are here: Home Support Knowledge Base I want to ... Print from my Program
Document Actions

Print from my Program

Printing from a file on client side (Windows)

You can print from a file by using the following code:

CALL fgl_set_property("gui", "winshellexec.verb", "print")
CALL fgl_winshellexec(file_name)
# this next call is to simply reset the verb
CALL fgl_set_property("gui", "winshellexec.verb", "open")

NOTE:  The printer that is used will be the default printer set by the platform that you are using.

Printing from a file on client server (Linux)

In Linux you will need to use the "RUN STRING" command to call the LPR program to print a file.  For uses and syntax of LPR, type 'man lpr' on your command line.