Thursday, 19 April 2018

microsoft office interop excel open file without saving in Asp.Net using C#.

microsoft office interop excel open file without saving

Description:
In this example we explain that how to open excel file without saving using Microsoft office interop in asp.net using C#. or how to create Excel file dynamically using C# and open it in excel without saving file in asp.net.so here we demonstrate that how to create excel file and open it without saving in asp.net.

Below is the single line code that will allow you to open created excel file without saving in asp.net using C#.
Code:

Microsoft.Office.Interop.Excel.Application  l_objExcel = new Microsoft.Office.Interop.Excel.Application();

//here yours excel create code

l_objExcel.Visible = true;




0 comments:

Post a Comment