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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export Grid To Excel launching Excel

Thread ID:





93660 Mar 26,2010 12:18 PM UTC Mar 29,2010 12:07 PM UTC ASP.NET Web Forms (Classic) 3
Tags: XlsIO
Sunil Vurity
Asked On March 26, 2010 12:18 PM UTC

Hi All,

I have a query,

I want to export grid to excel but without saving it to a file.

MyScenario :

Step 1 : Export Grid to Excel
Step 2: Launch Excel and write records to it
Step 3 : Once writing records is done,open a save dialog box to let user save where ever user wishes to.

Appreciate your help,

Sunil Vurity.

Geetha M [Syncfusion]
Replied On March 29, 2010 05:12 AM UTC

Hi Sunil,

Thank you for your interest in Syncfusion products.

You can stream the excel file to browser which would directly open it in Excel. You may then save it as shown in the simple sample below.


Please let me know if you have any questions.


Sunil Vurity
Replied On March 29, 2010 06:10 AM UTC

Hi Geetha Thanks for your support,

But my application is windows not web application.

Need help in this regard.

I want to open Excel (i should also be checking if excel is installed in the machine or not ) and the write grid to it asking user to save by opening a save dialogbox instead of saving it first.

Appreciate your help.

Geetha M [Syncfusion]
Replied On March 29, 2010 12:07 PM UTC

Hi Sunil,

If you are running a windows application, it is not possible to open the Excel file without saving to disk. But you may check if Excel is present or not using the following code:

catch (Win32Exception)
MessageBox.Show("Excel is not installed in this system");

Please try this and let me know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon