Export CR report to TEXT using dotnet
Hello all, when I export my report thru dotnet to a text file, the fields in the report are getting truncated. I have added a registery key TEXTEXPORT with a value of CharPerInch but it did nothing. When I view the report (crystalreportviewer) it's perfect, but when I export it, the fields are truncated. Is there anything I can do to make the viewed and exported reports look the same? Please help.
//Example of how I access TEXT export option.
CRAXDRT.Application crxApp;
CRAXDRT.Report crxReport
//EXPORT TO TEXT FUNCTION
CRAXDRT.ExportOptions crxExpOpts;
crxExpOpts = crxReport.ExportOptions;
crxExpOpts.FormatType = CRAXDRT.CRExportFormatType.crEFTText;
crxReport.ExportOptions.UserDefinedCharactersPerIn ch = 30;
crxReport.ExportOptions.CharFieldDelimiter = " ";
crxReport.ExportOptions.UseReportDateFormat = true;
crxReport.ExportOptions.UseReportNumberFormat = true;
crxExpOpts.DestinationType = CRAXDRT.CRExportDestinationType.crEDTDiskFile;
crxExpOpts.DiskFileName = exportfilename;
|