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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

export excel: data is trunkated

Status
Not open for further replies.

jel

Programmer
Feb 17, 2002
349
NL
I'm trying to export a report to Excel, using this code:
Code:
ExportOptions exportOpts = oRpt.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.Excel ;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.DestinationOptions = new DiskFileDestinationOptions();
// Set the disk file options.
DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
((DiskFileDestinationOptions)  oRpt.ExportOptions.DestinationOptions ).DiskFileName = strFileName ;
oRpt.Export();
In the excel-sheet I end up with, all text-fields are truncated to fit the size of the field on the report-design. However, I want to export many long textfields, so I dont want them truncated...
Does anybody know which settings I overlooked?
 
Are you sure that they're truncated, and not just properly sized to display the full contents?

If they are truncated, what size are these fields, and what version of CR and have you applied the service pack?

-k
 
Version: Crystal Reports for Visual Studio .NET
And yes, I'm sure data is truncated.
I wanted to export rows of (about) 30 fields, to fit them on a page I had to make them very small. In Excel I only get the first 3 characters of textfields, so only the characters that would be displayed if you'd view the report. The thing is: I don't want to view the report, but export the data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top