RadGridView to csv not works

2 posts, 1 answers
  1. Edmundo
    Edmundo avatar
    3 posts
    Member since:
    Jun 2013

    Posted 26 Jun 2013 Link to this post

    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.

  2. Answer
    Paul
    Admin
    Paul avatar
    60 posts

    Posted 28 Jun 2013 Link to this post

    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 >>
Back to Top