dotnet / Open-XML-SDK

Open XML SDK by Microsoft
https://www.nuget.org/packages/DocumentFormat.OpenXml/
MIT License
4.02k stars 546 forks source link

Missing namespace A16 #790

Open rmboggs opened 4 years ago

rmboggs commented 4 years ago

Is this a:

Description

The OpenXml SDK doesn't seem to contain definitions for elements in the A16 namespace (http://schemas.microsoft.com/office/drawing/2014/main). I'm sure there are other element types that are not coming up but the sample I ran into was a16:colId.

Information

Repro

Try to serialize the element a16:colId.

Observed

Element a16:colId serializes as an OpenXmlUnknownElement object.

Expected

Element a16:colId should serialize into an object like A16.ColId.

tomjebo commented 4 years ago

@rmboggs thanks for reporting this. I confirmed colId and rowId elements are missing extensions. I'll try to add them soon.

rmboggs commented 4 years ago

Thanks @tomjebo . Please let me know if you have further questions.

rmboggs commented 4 years ago

Ugh, just found another one in the c16 namespace (http://schema.microsoft.com/office/drawing/2014/chart).

C16.uniqueId is coming though as OpenXmlUnknownElement

Should this be reported here or a new issue?

tomjebo commented 4 years ago

@rmboggs This looks similar but to make sure, do you have an example document that shows this? The other one I can create but this one it would be quicker if you could provide a sample.

rmboggs commented 4 years ago

I can but it is easy to quickly build a sample pptx with this element by adding a default chart using powepoint 2016. The tag shows up in the extension list of the chart series element.

Element tree: (bar chart example) ChartPart > Chartspace[0] > Chart[0] > plotArea[0] > barChart[0] > ser[0] > extLst[0] > ext[0] > c16:uniqueId

Please let me know if more details are needed.

tomjebo commented 4 years ago

@rmboggs thanks, I was using Word. I'll try with PowerPoint.