As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
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.
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 ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005
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.
_______________________ *** WebFOCUS 8.1.05M ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005