0
byte[] l_ObjBuffer;
            StringBuilder l_StrBldr = new StringBuilder();
            string l_StrFileName = p_ObjFormCollection[1];

            l_StrBldr.Append(Convert.ToString(p_ObjFormCollection[0]));
            l_ObjBuffer = System.Text.Encoding.UTF8.GetBytes(l_StrBldr.ToString());
            l_StrBldr.Clear();

            HttpContext.Response.AddHeader("content-disposition", "attachment; filename=" + l_StrFileName + ".xls");

            return new FileContentResult(l_ObjBuffer, "application/vnd.ms-excel");

I am using the above code to export the html rendered to excel file(p_ObjFormCollection[0] is the html content). All works fine until i try it on iPad/iPhone. How can i make it compatible on iPad/iPhone???

0 Answers0