Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

I use AddAlternativeFormatImportPart attach document thet contains list numbering,the list numbering is malformed in office 365, and fine in office 2019.Bug with Open XML SDK

Open leapinchasi opened this issue 2 years ago • 1 comments

I use AddAlternativeFormatImportPart attach document thet contains list numbering,the list numbering is malformed in office 365, and fine in office 2019.,

Information

.NET Target: .NET Framework 4.6.2 DocumentFormat.OpenXml Version: 2.17.1

Repro: Create 2 word documents "Template.docx" and "ExampleAttachment.docx". Insert a list numbering in ExampleAttachment. image

Observed : Open the file in Word Office 365: image open the file in Word Office 2019: image

leapinchasi avatar Dec 12 '22 12:12 leapinchasi

Hi @leapinchasi ,

There is a newer OOXML SDK 2.18.0, that might help. I don't know if it affects this issue, but it won't hurt. If an update doesn't help, could you please post links to the files you created and the code you're using as text in a code block wrapped in "```". Like this

void CodeGoesHere() {
     return "Hello World";
}

mikeebowen avatar Dec 13 '22 23:12 mikeebowen