This is a migrated thread and some comments may be shown as answers.

RadGridView to csv not works

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Edmundo
Top achievements
Rank 1
Edmundo asked on 26 Jun 2013, 02:11 PM
Well, may i don't understand something in this page http://www.telerik.com/help/winforms/gridview-exporting-data-export-to-csv.html
or i have a missing dll?

Imports Telerik.WinControls.Data
Imports Telerik.WinControls.UI.Export
Imports Telerik.WinControls
Imports System.IO
 
 
 
Private Sub ToolStripButton2_Click(sender As Object, e As EventArgs) Handles ToolStripButton2.Click
        Dim exporter As ExportToCSV = New ExportToCSV(Me.RadGridView1)
 
        exporter.FileExtension = "csv"
 
        Dim camara As String = "C:\Users\FTL\Documents"
        exporter.RunExport(camara)
 
    End Sub
what I'm doing wrong?  i'll appreciate any help you can give me, thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 28 Jun 2013, 03:51 PM
Hi Edmundo,

Thank you for writing.

I tested your code and it works fine. The only thing you will have to change is the file name pointing to the exact file:
Dim camara As String = "C:\Users\FTL\Documents\SomeFileNameGoesHere.csv"

This should get you going.

Regards,
Paul
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Edmundo
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or