COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: valiant on 26 Jun 2014 11:08:56 PM

Title: Issue when exporting report to Excel as Excel 2007 Format
Post by: valiant on 26 Jun 2014 11:08:56 PM
Hi,

    I used Cognos 10.2 to design report. My report worked well as HTML output. However, when I exported report to Excel as Excel 2007 Format, some data was not corrected. Example: some cells viewed "Dennis Hirata" and some cells viewed "DennisHirata ". Space between FirstName and LastName was removed and one space added to last string. When I exported report to Excel as Excel 2002 Format, the result is good (as HTML format). How can I fix this issue when exporting report to Excel as Excel 2007 Format?  :o

Thanks
Valiant
Title: Re: Issue when exporting report to Excel as Excel 2007 Format
Post by: raj_aries81 on 27 Jun 2014 12:51:08 AM
Hi Valiant

Howabout including trim for both the dataitems (first name & last name) and then concatenating, just a thot :)

Regards
Raj
Title: Re: Issue when exporting report to Excel as Excel 2007 Format
Post by: valiant on 27 Jun 2014 02:43:32 AM
Hi,

   Both first name and last name were  the string in one columns in database (not 2 columns). Why did Cognos export to Excel 2007 as "strange" data ? How can I fix this issue ?

Thanks
Valiant
Title: Re: Issue when exporting report to Excel as Excel 2007 Format
Post by: BigChris on 27 Jun 2014 06:55:52 AM
Check the raw data on the server and make sure that there's no records on there for DennisHirata...look for any record that starts with "Dennis%" (depending on what platform you're using... you haven't said). Cognos doesn't alter the data by stripping out spaces as far as I know, so I think you're possibly seeing the same data but in a different sequence.
Title: Re: Issue when exporting report to Excel as Excel 2007 Format
Post by: valiant on 03 Jul 2014 03:06:27 AM
Hi BigChris,

    MS SQL 2012 is my data source. It deployed on Windows server 2008. I checked data from database and no rows are "DennisHirata ". How can I fix this issue ?   :'(

Thanks