If we run a report, that has 2 pages, i want to display one
page in HTML format and another page wil display in pdf
format. What is the procedure?

Answers were Sorted based on User's Feedback



If we run a report, that has 2 pages, i want to display one page in HTML format and another page w..

Answer / varun

use report function

case
when report output()='PDF' then 'PDF'
when report output()='HTML' then 'HTML'
end


use this condition in rendor variable then u ll get

Is This Answer Correct ?    11 Yes 0 No

If we run a report, that has 2 pages, i want to display one page in HTML format and another page w..

Answer / lakshmi reddy

drag string variable and write expression like this

reportOutput()
and add html and pdf to string variable

click on page explorer select page1 apply render variable
select string variable allow html and hide pdf next select
page2 allow pdf and hide html and run the report

if u run the report in html it will show page1 only and so
on....

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Cognos Interview Questions

i have 4 countries in my database as USA, UK, INDIA, CHANA. In value prompt's prompt control list, i want WESTERN_COUNTRIES, ASIAN_COUNTRIES instead of those country names. When i click on WESTERN_COUNTRIES, it should retrieve USA, UK records and when i click on ASIAN_COUNTRIES, it should retrieve INDIA, CHINA records. How is it possible?

4 Answers   Tech Mahindra,


can any one pls send me the project flow at the time of interview

0 Answers  


How to test reports in cagonos ?

10 Answers   CST, CTS,


can we create master detail report where master and detailed container is separate?

2 Answers   JPMorgan Chase,


What is the use of powerhouse?

0 Answers  






What is the advantage of using shortcuts?

0 Answers  


how u will determine the performence tune will occur either in report or system

0 Answers   Ness Technologies,


In framework Manager, what is a stitch query and is it good or bad?

2 Answers   Polaris,


Can you define cognos impromptu?

0 Answers  


Why we take so long time to display date prompt before displaying a report? How can we reduce the time?

2 Answers  


How many fact tables you have in your project?

1 Answers   HCL,


APPLYING COLORS TO ALTERNATE ROWS IN A LIST REPORT

5 Answers   Satyam,


Categories