2009-10-13 92 views
1

嗨我试图从Crystal Reports 11导出为CSV格式的报表,但问题是每个字符串值都包含在引号内,我不想要。我试图将分隔符设置为空格,但它不起作用。有人可以帮助我这个..?在Crystal Report 11中将文件导出为CSV

这里是我的代码:

elseif ExportFormat = "CSV" then 
ExportType = "5" 
ExportFileName = TimeStamp&"_"&Session.SessionID&ReportDN&".CSV" 
crystalExportOptions.DiskFileName = ExportDirectory & ExportFileName 
crystalExportOptions.FormatType = CInt(ExportType) 
crystalExportOptions.CharStringDelimiter =" " 
'crystalExportOptions.FormatType = ExportFormat 
crystalExportOptions.DestinationType = CInt(1) 
Session("oRpt").Export False 
Response.ContentType = "text/x-csv" 
Response.Redirect "RDCrptserver10.asp?cmd=export&export_fmt=crxf_csv:0" 

回答

0

一蹴而就的黑客后,我计算过,更改下方做的伎俩:

ExportType = “7” crystalExportOptions.CharFieldDelimiter = “”

7意味着charSeparatedValues,并且我们将fieldDelimiter设置为“”的唯一选项,所以现在字符串不会被包裹在引号内......

相关问题