Print Page | Close Window

Export crystal report to .csv

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4442
Printed Date: 05 May 2025 at 3:43am


Topic: Export crystal report to .csv
Posted By: ramsatish
Subject: Export crystal report to .csv
Date Posted: 03 Oct 2008 at 10:50am
Hi,
 
I designed a .rpt file in asp.net using c#.net.
 
Plz explain me how to export this report in .csv format.[It should be delimitted by double quotes(" ")]
 
I am working in visual studio2005.
 
Thanks in advance
 
Regards,
Siram Satish



Replies:
Posted By: hilfy
Date Posted: 07 Oct 2008 at 2:50pm

You have to force Crystal to use the quotes.  Unfortunately, this looks bad if you have to also be able to display the report.  If you are just directly exporting to CSV without displaying the report, it's tedious to set up but not difficult.

All you have to do is put each of the the string fields into its own text box with a quote before and after so that it looks like this in the definition: "{table.stringfield}"
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window