I see what you mean.
The easiest then would be to print a PDF.
Adobe Acrobat Reader support command line switches.
The switches are as follows:
/n - Launch a new instance of Reader even if one is already open
/s - Don't show the splash screen
/o - Don't show the open file dialog
/h - Open as a minimized window
/p <filename> - Open and go straight to the print dialog
/t <filename> <printername> <drivername> <portname> - Print the file the specified printer.
Ant it is obviously the /t you are looking for.
"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t c:\pdf\invoice.pdf
You obviously need to have the correct path to your version of Acrobat Reader.
You can use this from call program in a DQL or Button etc.
I know we fixed a lot of problems with call programs in 8.x so not sure how this will work in 7 but you just have to test it and figure a way around.
You might have to put it in a bat file and fire the bat file. If Im not mistaken, one of the problems that is there in 7 is that it add .exe to the whatever it is you try to call which is obviously not idea when you fire it with arguments.
I think my workaround for that back in the day was to add an extra space or two after so that it wouldnt make any meaning.
When calling a program with Path in windows you need to us if there is space in the path but you cant use it if there isnt. Who designed this I dont know but he/she must be an imbecile ;-)