Print from my program


Printing from a file on the 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 the client side(Linux)

In Linux, you will need to use the “RUN STRING” command to call the LPR program to print a file. For usage and syntax of LPR, type ‘man lpr’ in your command line.