I am creating a Word document, and offering it as a download from an asp.net Core web page:
public async Task<FileResult> GetDoc()
{
WordDocument doc = DocIO.CreateWordDocument();
.....
MemoryStream ms = new MemoryStream();
doc.Save(ms, FormatType.Docx);
doc.Close();
ms.Position = 0;
return File(ms, "filename.docx");
}
This returns and opens Word on Windows, Mac and Android. However, when I do this on a Dutch IOS using Chrome, I get:
FOUT
FOUTMELDING
Which means
ERROR
ERROR MESSAGE
Word is installed on the IPhone. When I try this with Safari, I get the same error message, but then I get the option to open it with Pages, which works, but does not display the Word charts.
I assume the error message comes from Word or IOS, but I am not sure. It does not come from my web site.
Any ideas?
Thanks