May 12, 2004, 04:03 PM
nansonSending 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
TredWhat OS are you running WebFocus on?
May 12, 2004, 06:59 PM
nansonthis is for the Windows platform using IE Browser and Java components.
May 13, 2004, 10:14 PM
TredYou 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.