Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 邮寄地址强制CSV中的第二条记录(DevExpress控件)_Vb.net_Csv_Devexpress_Xtragrid - Fatal编程技术网

Vb.net 邮寄地址强制CSV中的第二条记录(DevExpress控件)

Vb.net 邮寄地址强制CSV中的第二条记录(DevExpress控件),vb.net,csv,devexpress,xtragrid,Vb.net,Csv,Devexpress,Xtragrid,我的DevExpress CSV导出每个记录有两行 Rank Score,Prog.,Full Address 63.30 ,JIW ,1234 Whispering Pines Dr , ,Sometown MI 48316 62.80 ,JIW ,9876 Beagle Dr , ,Sometown Twp MI 48382 我想把它改成一行,因为我想做

我的DevExpress CSV导出每个记录有两行

Rank Score,Prog.,Full Address               
63.30     ,JIW  ,1234 Whispering Pines Dr   
          ,     ,Sometown MI 48316
62.80     ,JIW  ,9876 Beagle Dr             
          ,     ,Sometown Twp MI 48382
我想把它改成一行,因为我想做一个单词合并。(除非Word可以将这两行合并在一起,我认为它做不到这一点)

DevExpressXtraGrid ExportToText是否允许此操作

XtraGrid正在使用MemoEdit,并使用以下代码初始化它(注意ControlChars.NewLine):

我发现这是一个将文件导出/导入到不同格式的好工具。希望这对你有所帮助

Public ReadOnly Property FullAddress() As String
    Get
        Dim strAddress As System.Text.StringBuilder = New StringBuilder()
        If Not IsNullEntity Then
            strAddress.Append(Line1 + ControlChars.NewLine)
            If Not Line2 Is Nothing AndAlso Me.Line2.Length > 0 Then
                strAddress.Append(Line2 + ControlChars.NewLine)
            End If
            If Not Line3 Is Nothing AndAlso Me.Line3.Length > 0 Then
                strAddress.Append(Line3 + ControlChars.NewLine)
            End If
            strAddress.Append(String.Format("{0} {1} {2}", City, RegionCode, PostalCode))
            If Me.Country <> "UNITED STATES" Then
                strAddress.Append(ControlChars.NewLine + Me.Country)
            End If
        End If
        Return strAddress.ToString
    End Get
End Property
    Dim saveFile As New SaveFileDialog
    With saveFile
        '.InitialDirectory = ClientManager.CurrentClient.Entity.StudentPictureDirectory
        .FileName = "ApplicantList.csv"
        .CheckPathExists = True
        .CheckFileExists = False
        .Filter = "All Files (*.*)|*.*"
    End With
    If saveFile.ShowDialog() = Windows.Forms.DialogResult.OK Then
        Dim PrintingTextExportOptions As New DevExpress.XtraPrinting.TextExportOptions(",", Encoding.ASCII)
        PrintingTextExportOptions.QuoteStringsWithSeparators = True
        ApplicantRankListViewsGridControl.ExportToText(saveFile.FileName, PrintingTextExportOptions)
    End If