Hi All,
I am getting following error :
[B]System.NullReferenceException: Object variable or With block variable not set.[/B]Source Error:
Line 1266: Error1.text=exp.tostring()
Line 1267:
Line 1268: oExcel.Quit()
Line 1269: ReleaseComObject(oSheet)
Line 1270:
Source File: F:\Web\airtel.net\newaudit\callwisereport.aspx Line: 1268
Stack Trace:
[NullReferenceException: Object variable or With block variable not set.]
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn) +831
Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +23
ASP.callwisereport_aspx.exportall_Click(Object sender, EventArgs e) in F:\Web\airtel.net\newaudit\callwisereport.aspx:1268
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
An early help would be appreciated
Thanks
Priya