COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: bartburg on 05 Oct 2015 04:49:43 AM

Title: how to print report location
Post by: bartburg on 05 Oct 2015 04:49:43 AM
how can i get the report location in the footer on the print without it being on the html output on screen

%ReportPath ()% in the footer gives me a location but i only want it on the printout.
Title: Re: how to print report location
Post by: BigChris on 05 Oct 2015 05:23:43 AM
Could you create a render variable and only show it for pdf output (assuming that where you're going to print from)?
Title: Re: how to print report location
Post by: bartburg on 05 Oct 2015 05:34:25 AM
render variable ? do u have a example?
Title: Re: how to print report location
Post by: BigChris on 05 Oct 2015 06:07:16 AM
In the centre divide you should see Condition Explorer. Click on Variables at the top and drag a new Boolean Variable into the Variables box. In the Report Expression drag in your ReportOutput() and add "= PDF" so that you've got ReportOutput() = PDF. Give your Variable a name, perhaps something like "PDF Output"

In your report page now click on your expression for the report location. In the Properties pane you should now see an item for Render Variable. Select PDF Output and see if that does the trick ofor you.
Title: Re: how to print report location
Post by: bartburg on 05 Oct 2015 06:09:20 AM
tnx for the example i will give it a try (Y)
Title: Re: how to print report location
Post by: BigChris on 05 Oct 2015 06:15:07 AM
Also check put page 389 in the user guide:

http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/10.2.2/ug_cr_rptstd.pdf (http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/10.2.2/ug_cr_rptstd.pdf)