Hello,
That's a wrong
using
statement...
The
Paragraph
class exists in 3 different namespaces, and I think you chose the wrong one.
When dealing with a Word document you should use
DocumentFormat.OpenXml.Wordprocessing.Paragraph
I think you used
DocumentFormat.OpenXml.Drawing.Paragraph
as the schema shown in your example is the schema for the drawing namespace.
So the solution is simple in your using section, remove:
using DocumentFormat.OpenXml.Drawing;
and replace by the correct one:
using DocumentFormat.OpenXml.Wordprocessing;
Valery.