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

using jsPDF and/or HTML2Canvas

Started by irvingbos, 02 Sep 2016 08:57:27 AM

Previous topic - Next topic

irvingbos

Hi, i am trying to build button which will allow user to PDF a given chart. Looking at using HTML2Canvas to grab part of the screen, then use jsPDF to write it to a PDF. It partially works, but always getting image chopped, and a black background in the PDF.

Anyone have experience doing this in a Cognos report?

thanks.

AnalyticsWithJay

There's a much simpler solution in my opinion which involves no code.

1. Create a drill through on the text, which drills to this same report.
2. Create a second page on the report that has a render variable. The page only renders when accessed through the drill through.
3. On the drill through properties, set the run format to PDF.
4. Place a copy of the chart on this second page.

Note: You'll need to set render variables on your other report pages so they only render when it's not accessed via drill through.

Jay