Is it possible to send a PDF report directly to a online printer.
I searched in the forums, there are no related posts about sending PDF reports to the printer.
I am currently using WF 7.7.03.
Is Report Caster the only option to do this? If not can we call a Report Caster schedule from a Webfocus fex or even JAVA application.
Any help will be appreciated.
Thanks in advance. SantuThis message has been edited. Last edited by: <Kathryn Henning>,
Web FOCUS 7.7.03 PDF
July 25, 2013, 05:09 PM
Rakesh P
Hi Santosh,
As per my understanding, you have to use the report caster APIs to call the printer from JSP. The report caster API documentattion is available in the tech support site.
The Print agent name is : DSTSchedFactory.METHOD_PRINT. You need to pass the Printer IP to this method somehow.
Also note that the o/p format for the Printer fex should be 'PS'. means, you need to hold the data in PS format.
Webfocus 7.1.6, Webfocus 7.7, Webfocus 8
July 25, 2013, 06:58 PM
prodrigu
Santu,
The printer needs to be set up on each box (DEV,ACC,PRD). Example, our development box is (modapp150d) and you need to add the printer to this. Then create a procedure which will save your pdf report to a specific location path. Once its save then use -WINNT command to call a .bat file which you will use PRINT command to send your report a specific printer. Batch file would look like this:
You try this as it works for us:- FILEDEF NSCAPR04 DISK C:\TEMP\NSCAPR04.PDF -RUN TABLE FILE CAR PRINT CAR BY COUNTRY ON TABLE HOLD AS NSCAPR04 FORMAT PDF END -RUN ------------------------------------- -* WebFOCUS printing (.PDF file only) -*----------------------------------- COPY C:\TEMP\NSCAPR04.PDF &&PRNTR.. -RUN
where &&PRNTR is a 'share' set up on the printer you need to print on
_______________________ *** WebFOCUS 8.1.05M ***
September 23, 2013, 12:03 PM
prodrigu
Ian,
Do you have logging set up to capture if the report fails or is successful when printing to a printer? I am using this technique but time to time the report fails to print to a specify printer and I don't know if its WebFOCUS messing up or its the network.
No we don't have logging but I am sure you can turn it on to see whether it's a network issue or not. Speak with your printer people. Suggest you use SET EMPTYREPORT=ON so that if there is no data cominh from WebFOCUS, at least a blank report (ie. headings only) will be printed.