I need to work on OpenXml to generate a word document from AX using a template. I got a sample code in C# and I have written the same code in x++ and it seems to be working fine but I am having a strange issue.
The line where we are fetching descendants (document.MainDocumentPart.Document.Descendants()), it does not execute the code, it just stops the execution. On generating CIL it gives a warning "Exception was thrown because the .NET instance method DocumentFormat.OpenXml.Wordprocessing.Document.Descendants was not found during CIL generation". I am pretty sure this is the reason the code is not executing.
I checked the references, Document.OpenXml reference is available. Need to know what could be the possible cause for this warning.
*This post is locked for comments
I have the same question (0)