If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Printing Entire Dashboard to PDF in Workspace

Started by jguevin, 03 Sep 2015 07:51:39 AM

Previous topic - Next topic

jguevin

We are on 10.2.2 and users have a need to print to pdf the entire Workspace, not just individual widgets.  When they use the print option or try to print from the broswer things don't size correctly and get cut off and we develope in a particular screen resolution which not always matches the users resolution.  what I tried was creating a Report Studio report that is an HTML item which creates a print to PDF button with some javascript.  I then add it to my Workspace as an object.  The button appears fine but when pressed I get a CAF error...DPR-ERR-2079 Firewall Security Rejection. Your request was rejected by the security firewall. 

  CAF rejection details are available in the log. Please contact your administrator.

The button works fine in Report Studio.  I have doen some research online and saw that the window that opens in a workspace session is different than a report viewer in report studio.  The one thing I haven't tried is disabling the CAF, not sure that is an option.  Anyone successfully get a print to PDf button to work or have alternative ideas to this issue.  I would like to say this is 2015 and we try not to print things out but I'm losing that argument.  Thanks

bdbits

Your admin should be able to look in the log for more details on the CAF rejection.

What does your javascript look like? The following works for me (10.2.1 FP4 with CAF enabled).

<input type='Button' value="PDF" onclick="javascript:window['oCV'+'_THIS_'].getRV().runPDF();">

P.S. Lest you think I am smarter than I am, I built that from javascript I copied from ... well somewhere, I do not recall where exactly.  ;D

jguevin

I think the reason mine isnt working is because it is calling the gCognosViewer which only works in report Studio.  I guess a different viewer is called when running from Workspace.  I tried your code in an HTML item and it doesn't do anything on click.  I'm no programmer and get codes pieces from good old Google.  Where can I find the CAF log file?
thanks

bdbits

By default they go to /logs/cogserver.log.

You know, I realized this morning I had never tried my HTML/javascript in a workspace. So I just dragged a report with the item into a new workspace, and as for you, it does not work there. I do not get an error, it just does absolutely nothing. Odd, because it works in RS, Cognos Connection, embedded in SharePoint, everywhere I have run it up until now.

If I get a chance I will look into it later. Post back if you figure it out first. :)

jguevin

Able to spend more time researching and found error in cogsever log.

   2015-09-25 14:26:04.822   -5               Default Executor-thread-137888   caf   2047   1   Audit.dispatcher.caf   Request         Failure      invalid variable: name => ui.action
   2015-09-25 14:26:04.822   -5               Default Executor-thread-137888   caf   2047   1   Audit.dispatcher.caf   Request         Failure      validate form field variables failed: form fields variables => <bus:formFieldVars