Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2004, 12:59 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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;







Similar Threads
Thread Thread Starter Forum Replies Last Post
Export functionality is not working with CR .net skdevre Crystal Reports 0 May 8th, 2007 01:50 AM
CSS not get applied in CR Export functionality skdevre Crystal Reports 0 April 10th, 2007 02:38 AM
export to excel from CR 8.5 pallavijyo Crystal Reports 2 March 28th, 2005 05:29 AM
rutime report in dotnet sathishraj Crystal Reports 0 July 17th, 2003 04:05 AM
rutime report in dotnet sathishraj Crystal Reports 0 July 17th, 2003 04:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.