I am trying to export my document but I am getting the error attached to the thread.
I can fix this by going into the properties of the document and checking the unblock box. Is there a way to do this in the export to be able to just open the document without having to go into its properties? I get the same error on the demo page for generating word documents https://demos.telerik.com/aspnet-ajax/wordsprocessing/generate-documents/defaultcs.aspx
Here is my code for export
RadFlowDocument document = report.GenerateDoc();
DocxFormatProvider provider = new DocxFormatProvider();
MemoryStream ms = new MemoryStream();
provider.Export(document, ms);
byte[] byteArray = ms.ToArray();
ms.Dispose();
return File(byteArray, "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "AAR.docx");