Partager l'article ! A Java Bean to print files to the local printer: Purpose Here is a Java Bean from Casey Bowden to get back print features lost in Oracle Reports &nb ...
Purpose
Here is a Java Bean from Casey Bowden to get back print features lost in Oracle Reports converting to web environment.
I. Problem One:
Point Of Sale (POS) clients is slow to print.
After converting reports from client/server to the web environment, OraRRP utility was used to print reports directly to client’s default printer, without being prompted with a print dialog. Even though OraRRP works as advertised, it does not meet the speed required for a POS terminal.
Solution:
In my experience with DirectPrint JavaBean, the time to print a receipt reduced from 12 – 14 seconds to 2 - 3 seconds. Also, DirectPrint JavaBean is downloaded and cached to the client machine when client accessed form that calls for DirectPrint JavaBean.
II. Problem Two:
OraRRP utility does not allow printing to named client printer.
Because of architectural change from client/server to web, knowledge of the client printers was lost since Report Server resides on the middle tier where knowledge of printers is loaded.
Solution:
With DirectPrint JavaBean, programmers can send PDF report output to named client printer. This feature can also be used to send a single report to multiple client printers that are either local or on the network. The exact printer name is required.
Conclusion:
DirectPrint JavaBean can be used to restore some print features lost when converting reports from a client/server to web environment.
Download the DirectPrint Demo, overview, source and installation instructions