COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: sunny8 on 24 Sep 2013 07:02:09 AM

Title: How to hide gridlines when we export cognos report to Excel formats
Post by: sunny8 on 24 Sep 2013 07:02:09 AM
Hello group,

I'm looking for challanging solution to hide gridlines of excel sheet when we export cognos report to Excel formats. Please find the attachment for better understaning of my requirement. Let me know if there is any possibility to fix this. Appreciate your quick response!!!!!

Thanks
Sunil
Title: Re: How to hide gridlines when we export cognos report to Excel formats
Post by: adam_mc on 25 Sep 2013 04:03:29 PM
Try creating a Conditional Style based on the Report Output being Excel.

Might be something like: ReportOutput () = 'XLS'
You can select this from the Report Functions when you are creating a Conditional Style.

Apply that to the specific sections you require (Lists, Crosstab, Cells, Headers, Footers etc...).

Hope this helps!
Title: Re: How to hide gridlines when we export cognos report to Excel formats
Post by: sunny8 on 26 Sep 2013 08:11:08 AM
Hello Adam,

I guess, you did not understand my exact requirement. Can you please look in to screen shot attached in the previous post for better understanding.

Thanks,
Sunil
Title: Re: How to hide gridlines when we export cognos report to Excel formats
Post by: BigChris on 26 Sep 2013 08:31:06 AM
Sunil, Adam's suggestion is valid - whatever formatting you do you'll only want to do it for the xls output.
Title: Re: How to hide gridlines when we export cognos report to Excel formats
Post by: sunny8 on 27 Sep 2013 03:45:37 AM
Adam/Chris,

But i don't want to hide the gridlines for specific objects ( List, Crosstab, Cell ). I need to hide the gridlines for whole excel sheet when the report runs in Excel format. Hope, you understand my requirement.

Thanks
Sunil
Title: Re: How to hide gridlines when we export cognos report to Excel formats
Post by: adam_mc on 01 Oct 2013 01:58:12 PM
Not sure why you would still want to use Excel output if that is the case?!
Why not use PDF instead?

However, if Excel is still the requirement, try setting a Conditional Style on the output format being Excel (see thread) on the Page as a whole.
I am not sure if this will supersede the styles of any other containers on the page or whether you will have to set this Conditional Style on all objects.

Hope this helps.