When looking for a print solution with APEX you will find .PDF
You will find a lot of .PDF
And .PDF is good. There is nothing wrong with .PDF. In fact, .PDF looks cool and you can do a lot of neat stuff with it. With toolkits like pl/pdf you can create .PDF’s directly from PL/SQL.
But sometimes there is the need to be able to print directly.
For instance with batch-processing or with nightly print-runs or whatever. And this is where you would find yourself locked out with .PDF and, glancing Google, you would guess you’d be out of luck!
Since we had:
- created a web based solution
- the need to print directly
- print in nightly-runs
plus we had:
- about 400 reports (.rdf files) which we need to reuse (without having the opportunity to rebuild them in something like pl/pdf)
- combine different output / distribution mechanisms
we needed to tackle this challenge!
So we did !!
It was fixed by using some old and new technology mixed together:
Oracle reports builder
Oracle Fusion Middleware, more specifically, Oracle Reports Server, aka WLS_Reports
By using this combination of products, you can create a printing solutions which is capable of printing directly to your network printer, create HTML or PDF reports.
Schedule them, e-mail them, and all this by URL-control!
Use the following (much used, but far from a complete list of) control-commands:
- report=<name of your .rdf>
- destype=type of output of the report
- desname=name of your output (device, file, whatever)
More commands in the link to the documentation on the bottom of this post!!
- You can post these parameters to the Reports Server without calling them in the original URL!
- You can set a “local” on your Reports Server for omitting <@database> in ‘userid’ for your default database
- Actually you can set all environment variables, like TNS_ADMIN, NLS_LANG, REPORTS_PATH, etc.
What we found is we needed to run Oracle Reports Server on Windows, just to take advantage of the Windows Printing System which is quite stable and easy to configure. (So, yes, okay, there you have it, a good thing about Windoze!)
Basically you can create a simple solution, but you can easily expand it quite a bit, making a printing and reporting solutions worthy of and enterprise environment, with distributing reports via e-mail, creating reports in file-systems, embedding reports in websites, and basically anything you want or would need.
And, you get a nice Management Console for free with this installation!
From this management console you can administer your print-jobs, set all kinds of parameters, which is quite neat!!
But, wait… the catch… It’s gonna cost you!
Or, can you keep it under control?
But of course!
Printing is mostly a half-on-line thing, and for a lot of stuff, it’s not extremely performance / time critical… So what can we do?
Oracle Reports Server is licensed as “Oracle Forms & Reports Server” and it will set you back € 370 per Named User or € 18.200 per CPU (being Oracle CPU’s according to the Core Factor Table!)
It’s still a whole lot of money, but would you really need more than 2 cores? If you give the machine enough memory and fast disks? Probably not.
Is it worth considering taking another node in your environment? Perhaps. This print-solutions could be a viable reason to do so. It brings you quite a bit of functionality straight from the box. But, as always, do your math and make educated choices.
The documentation link promised:
If you would like more info, please just drop me a line!