Print Page | Close Window

Export to CSV not working

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1216
Printed Date: 03 May 2024 at 6:24pm


Topic: Export to CSV not working
Posted By: kensk
Subject: Export to CSV not working
Date Posted: 22 Aug 2007 at 11:00am
Hello,
 
When I do a Print Preview, and click the Export button on the CR viewer control, the export list does not show the CSV item.  Just .rpt, .pdf, .xls, .doc, and .rtf are shown.
 
Moreover, when I try to export from my code, I get an error dialog which says "Invalid export DLL or export format".
 
The line of code I'm using to export is:

reportDocument.ExportToDisk(ExportFormatType.CharacterSeparatedValues, saveFileDialog.FileName);

I hear talk about export to CSV, but I haven't found any code samples on how to implement this functionality.  The CR XI .NET SDK documentation says that export to CSV is possible, but doesn't show any API sample code.
 
Export to Excel, PDF, Word, and rtf all work fine from within my code.
 
I've upgraded to XI Release 2.  The Crystal assembly references in my project show version numbers 11.5.3700 and 11.5.3300.  Yet it seems I don't have the latest since there is no CSV item in the Crystal Report Viewer export list and from what I'm reading on this forum, there should be.
 
Any input would be greatly appreciated.
 
Still a newbie,
Ken



Replies:
Posted By: BrianBischof
Date Posted: 22 Aug 2007 at 3:14pm
The free version of VS.NET doesn't have the CSV export options. You have to upgrade to get that capability.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window