2009-10-13 45 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設置爲「」的唯一選項,所以現在字符串不會被包裹在引號內......

相關問題