.Net CsvWriter

In my code below... the file is created with double quotes in text fields.
How do I suppress that?

If CBool(createCSVFile) Then
    Dim writer As New CsvWriter(Path & "\Exports\" & Trim(Left(FileName, 50)) & ".csv", ",", Encoding.Default)
    writer.WriteAll(dt, True)
    writer.Close()
End If

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
You probably need to set UseTextQualifier to False.
0
 
Éric MoreauSenior .Net ConsultantCommented:
I really doubt that CsvWriter is a pure .Net object. Where did you get it from?
0
 
Larry Bristersr. DeveloperAuthor Commented:
Hey Eric...

DataStreams.dll

Imports DataStream.csv
0
 
Larry Bristersr. DeveloperAuthor Commented:
Perfect. Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.