请问如何将datagridview从vb6.0导出为.txt格式?我写这段代码来查看表格的内容到datagridview
Call Buka
koneksi.CursorLocation = adUseClient
rsDTS.Open "select * from TBL_DTSHEET where KDKRY = '" & txtKdKry.Text & "' and (TGLWORK between '" & Format(dtAwal.Value, "mm/dd/yyyy") & "' and '" & Format(dtAkhir.Value, "mm/dd/yyyy") & "')", koneksi
With rsDTS
If Not (.BOF And .EOF) Then
mvBookmark = .Bookmark
End If
End With
Set DataGrid1.DataSource = rsDTS.DataSource
现在我想知道如何将这个 datagridview 导出到格式为 .txt 的文件中?有人可以帮忙吗?谢谢