Changing a datatype solely for the purpose of Excel Export in Crystal Reports

Posted by yeahumok on Stack Overflow See other posts from Stack Overflow or by yeahumok
Published on 2010-04-27T17:58:33Z Indexed on 2010/04/27 18:03 UTC
Read the original article Hit count: 262

I have a report that has several numerical fields. To fill a project requirement, i had to use the following formula:

if {DataTable1.No of Investments}>9999 then '*****' else toText({DataTable1.No of Investments},0) 

Basically, if the number fed in is bigger than 9999 it turns into * on the report.

Now, when i try to export into excel, not only is the data type for all fields, strings...but the * show up versus numbers.

I was wondering if there was a way to re-cast this back into a numerical value SOLELY for the purpose of excel exportation so that i'd be able to use excel formulas as well as see numbers instead of asterisks. I'd only be doing data-only excel exports.

Any ideas?

© Stack Overflow or respective owner

Related posts about crystal-reports

Related posts about excel-export