sir,
i am generating the excel report . when ever i m generating that on my localhost then it is generate successfully but when ever i m generating on remote server then a authentication windows appear.
theWorkbook.SaveCopyAs(fileName);
theWorkbook.Close(false, fileName, true);
byte[] data = ExportImportUtil.StreamFile(fileName);
File.Delete(fileName);
return data;
response.ContentType = "application/xls";
response.OutputStream.Write(fileContent, 0, fileContent.Length);
response.AddHeader("content-disposition", "attachment;filename=" + fileName)
Excel report generation error
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Posted Jul 8, 2013, 7:10 PM EDT
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 8, 2013, 7:42 PM EDT
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 8, 2013, 7:47 PM EDT