hi
i have 1 button ..ob button click i want to display excel sheet i.e avg_file_disp_monthly.xls
here is the code. kindly see code
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Excel = Microsoft.Office.Interop.Excel; using word = Microsoft.Office.Interop.Word; public partial class _Default : System.Web.UI.Page { #region Global Variabes public string Message = string.Empty; // To store the Error or Message private word.ApplicationClass OfficeWord; // The Interop Object for Word private Excel.ApplicationClass OfficeExcel; // The Interop Object for Excel object Unknown = Type.Missing; // For passing Empty values public enum StatusType { SUCCESS, FAILED }; // ...

Go to the complete details ...