Subject: Export CR report to TEXT using dotnet
Posted By: polin2358 Post Date: 10/8/2004 12:59:04 PM
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.UserDefinedCharactersPerInch = 30;
crxReport.ExportOptions.CharFieldDelimiter = "  ";
crxReport.ExportOptions.UseReportDateFormat = true;
crxReport.ExportOptions.UseReportNumberFormat = true;
crxExpOpts.DestinationType = CRAXDRT.CRExportDestinationType.crEDTDiskFile;
crxExpOpts.DiskFileName = exportfilename;



Go to topic 20434

Return to index page 750
Return to index page 749
Return to index page 748
Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741