Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Text File

Status
Not open for further replies.

Hepburn

Technical User
Jul 4, 2007
9
US
I'm using Visual Studio 2005 Team Suite which I believes has Crystal Reports 10 installed.

I'm trying to export to a text file. Here's the code I have so far:

DiskFileDestinationOptions diskOpts =
ExportOptions.CreateDiskFileDestinationOptions();

// set the export format
ExportOptions exportOpts = new ExportOptions();
exportOpts.ExportFormatType =
ExportFormatType.RichText;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;

diskOpts.DiskFileName = AbsolutePath("c:/pleasework.txt");
exportOpts.ExportDestinationOptions = diskOpts;

_crReportDocument.Export(exportOpts);

Is RichText the only text option I have?? I've been googling and it sounds like I may need to install a dll to export to text. Can anyone confirm that?

Thanks much...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top