Focal Point
[CLOSED] Printing a report from the browser

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5117096306

May 12, 2011, 07:56 AM
diogopc
[CLOSED] Printing a report from the browser
Hello everyone.

I've done some searching regarding my question but most of the topics I found are very old so I thought I'd ask and see if any development has been made.

I have a report with an html output and I'm using the html composer to include it in a webpage. My problem is when I try to print it from the browser it only prints what's visible and not the whole report page.

From what I understood from the searches the best way to make a report printable is to have it's output set to pdf. Is there anyway I could include a button in the html page that would call a copy of my report with the pdf output and print it automatically?

Thanks in advance.

This message has been edited. Last edited by: Kerry,


WebFOCUS App Studio 8103
Windows7
All outputs
May 12, 2011, 05:30 PM
Waz
If you are using composer, the you are aware that you can add a button to the page, this could be linked to the report forcing the output to be PDF.

You could also product a PDF version when you return the HTML version, and have a button on the report, this is just HTML in the report, there are examples on the forum.

If you need the report to be printed automatically, then you may have to look at a postscript file, and have the WebFOCUS server send it to the printer. I don't like you chances of auto printing the PDF, there may be a way, but I would advise looking on a PDF forum for that.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 13, 2011, 05:07 AM
diogopc
Thank you Waz.

I'll probably just stick with the button returning a pdf version of the report and have the person print if from there if he/she wants to.

If I manage to find a way to print it automatically I'll let you know.


WebFOCUS App Studio 8103
Windows7
All outputs