We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Exporting to Excel

I have a chart that gets its data from a dataview (im bounding it to the dv)

i want to export its data and image to an excel file with 2 sheets(one is the data, the other is the image)

how can i do that? is there a way to bind the excel somehow to the dataview as well?

i want to do this without saving it first, but to open the excel and let the user save it if he wants, in which path he wants

thank you



1 Reply

BP Bhuvaneswari P Syncfusion Team May 22, 2008 01:48 PM UTC

Hi Ravit,

Thank you for your interest in Syncfusion products.

1 DataView to Excel
It is not possible to export the DataView data into the Excel file. We can only export the DataTable into the Excel file using our XlsIO. As a workaround please convert the DataView to DataTable then export into Excel file.

Here is the sample for your reference:


http://www.syncfusion.com/development/uploads/DataGridViewtoExcel_30cfcae4.zip


In this sample we have converted DataView into DataTable then exported to Excel file.

2. i want to do this without saving it first, but to open the excel and let the user save it if he wants, in which path he wants

It is not possible to open the Excel file without saving into the disk. After saved the file in the disk only we can view it in the viewer or MS Excel.

Please let me know if you have any other questions.

Best Regards,
Bhuvana


Loader.
Live Chat Icon For mobile
Up arrow icon