.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)
End If

Open in new window

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


Imports DataStream.csv
Larry Bristersr. DeveloperAuthor Commented:
Perfect. Thanks
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.