Я работаю над экспортом Excel в C# .net. Я использую приведенный ниже код, который отлично работает на настольных компьютерах и ноутбуках.Экспорт Excel не работает в IPAD
homeServices = new HomeServices();
string htmlOutput = "";
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.ContentType = "application/ms-excel";
HttpContext.Current.Response.Write(@"<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">");
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=Export.xls");
HttpContext.Current.Response.Charset = "utf-8";
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1250");
htmlOutput = homeServices.ExportHomeData();
HttpContext.Current.Response.Write(htmlOutput);
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();
Но когда я использую это в IPAD, я получаю сообщение об ошибке, как
Unable to Read Document. An error occurred while reading the document.
ли выше код обыкновение поддерживать IPAD.
Примечание: Я много искал, и я нашел, по крайней мере, соответствующее решение для этой проблемы. За последние 3 дня я искал ... В конце концов помогите специалистам.