views:

1757

answers:

2

I am using Crystal Report that comes with VS 2005. I need to Export the Crystal Report To Text File. What's the way to do it.

+1  A: 

Looks like they've taken away that enumeration for some reason. I suppose you could loop through the underlying recordset, and dump the contents into a text file yourself. What a PITA though...

JosephStyons
A: 

I think the closest you will get to a text file is to export as csv.

ExportFormatType.CharacterSeparatedValues

Now, the thing that sucks about this is if the report is designed to look good (with page footers, headers, etc) the csv file will contain all that. So you would need to make a minimal report to get a good csv export. Which really almost makes it seem more logical to dump to text file yourself.

dotjoe
looking at JosephStyons link I'm not sure if this csv exporttype is in VS 2005 crystal. I'm using cr XI...
dotjoe