Focal Point
Sending Reports Directly to a Printer

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6111087331

May 12, 2004, 04:03 PM
nanson
Sending Reports Directly to a Printer
Has anyone figured out a way to send a report directly to a Printer? Our application defaults reports to display in the PDF format, the users have other options like HTML and Excel. But a majority of our user base would like to be able to select a report, run it, and have it print without having to view the report.
May 12, 2004, 06:11 PM
Tred
What OS are you running WebFocus on?
May 12, 2004, 06:59 PM
nanson
this is for the Windows platform using IE Browser and Java components.
May 13, 2004, 10:14 PM
Tred
You can write a focexec that has an lpr printing command you can send the file to the printer. However, you can't send a PDF directly to the printer, it needs to be PS (postscript). An example would be
PRINTME.fex
...contents....
DOS lpr -S "printserver ip" -P "printer cue name" -o l filename.ps

go to a command prompt in windows and type lpr /? to get a listing of how to use the lpr command.