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
- Dominant language
- C#
- Stars
- 4.6k
- Forks
- 605
- PR merge metrics
- No merged PRs in 30d
Description
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.

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

Contributor guide
Research direction
Start by reproducing the issue with Template.docx and ExampleAttachment.docx using AddAlternativeFormatImportPart on .NET Framework 4.6.2 and DocumentFormat.OpenXml 2.17.1. Compare the list numbering in Office 365 and Office 2019; done means the attached document retains correct numbering in both versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100