Need some help here...
I'm exporting a RadDataGrid to CSV but get the 'object reference to instance of an object' error. Every time i have a empty *.csv doc and the csvExporter.RunExport crashes...
Changing it to an Excel exporter makes it work fine.
11 Answers, 1 is accepted
I haven't been able to replicate this issue. I have prepared you a sample that exports to CSV that can be pasted into a new project. Please can you let me know if this works for you
Hope this helps
Still get the object reference not set when the Runexport methode is executed.
what Telerik dll's do i need for this in the bin folder of my application?
As per this help topic you will need to include the TelerikData.dll
The collowing namespaces are used:
Please could you confirm which version you are using and post a stack trace if this still doesn't work for you
You mentioned that the sample that I sent to you caused the same issue. Is this still the case, or do you now have this resolved?
when i make an in memory instance of the gridview, in my class, it works NOT!
Please post a sample application here to demonstrate the problem using the Format Code block which will help me to assist you further.
Changing it to an ExportToExcelML(gv2) WORKS???
Please consider the following code. I hope this helps, but if you need further help, please let me know
did this help? If so, please mark as answer. If you need further assistance please let me know
I just want to add that we do not support exporting an instance of RadGridView, which is not added to any form. The work-around, which Richard has already provided, to put a grid on a form with Visible = false is the right way to overcome this limitation in your case.
the Telerik team