DocX
DocX copied to clipboard
can not support doc?
i test a docx with only 3 pictures
using (var document = DocX.Create(docpath))
{
foreach (var section in document.Sections)
{
foreach (var paragraph in section.Paragraphs)
{
foreach (var pic in paragraph.Pictures)
{
//
}
}
}
}
but Sections.count=1, Paragraphs.count=0, document.Pictures.count=0, so i can not read picture. can you help me?
spire.doc works fine
Hi,
By reading the code you submitted, I can see you are creating a docx and then trying to parse the sections/paragraphs/Pictures. But if you create a docx, it will be empty, so it's normal that it contains only 1 section, along with no paragraph/picture.
Thank you
sorry, i make a mistake
docx can not support doc format? docx is fine
Hi DocX supports MS Word docx format. It can support MS Word doc format, but it's not garanteed. Thank you