I need to create a trigger based on a flag "IsExportPivot". If this flag is set to 1, Excel addin will create Pivot table in excel dynamically.
xmlWriter.WriteRaw(@"<CustomDocumentProperties xmlns=""urn:schemas-microsoft-com:office:office"">
<MSCRMCreatePivot dt:dt=""float"">");
xmlWriter.WriteRaw(isExportPivot ? "1" : "0");
xmlWriter.WriteRaw(@"</MSCRMCreatePivot>
</CustomDocumentProperties>");
The above code generates and triggers the flag for xml creation. I would like to create and trigger the flag for excel (.xlsx) creation using same properties applied for xml creation in the above code using OpenXml.