Export data to CSV in Crystal Report 2008


I want to export my report data in CSV format as it is shown on report. however when I tried it, it does not export them to the correct CSV format.  I need my csv format shows a line of column header and all detail content listed below column header

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WHat do you mean as it is shown on the report?

How is the result different from what you want?

Kurt ReinhardtSr. Business Intelligence Consultant/ArchitectCommented:
CSV files don't generally have column header data. They're designed to be just record data in order to be imported into other databases. In older versions of Crystal Reports, one had to create a "page header" as the first record in the detail data in order to get the expected output.  That's not true with Crystal Reports 2008, though, which gives you greater control over exporting to csv.

With Crystal Reports 2008, you can isolate various sections.  I just wrote a sample report and it exported the page headers perfectly fine in csv format.  So, are your column headers actually in a page/report header?  If so, they should export fine. If not, why not?
KANEWONGAuthor Commented:
Hi Rhinok;

In your sample, does the page headers repeatly displayed in the CSV file too?  Because the data in my Crystal Report 2008 will be exported to the CSV file and the column header cannot be repeated.

Now, I have to export my Crystal report result to the Excel ('xls") file first, then open it with Excel and save it back to the CSV file, I want to skip this part.

What options did you set for the export.

I just built  simple report and when I exported the page headers they repeated on each line.

I changed the option to ISOLATE PAGE HEADERS nd then they appeared once


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I think rhinok should get some credit since he suggested the answer.  My comment was simply to provide the method of implementing his comment.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.