Reputation: 177
how to get pages of a word document? I want to make a xml file from docx(or doc) file in this format:
<Page No="1">
<text>Text of page 1 here</text>
<footnote>text of footnote here</footnote>
</Page>
<Page No="2">
<text>Text of page 2 here</text>
<footnote>text of footnote here</footnote>
</Page>
.... Thanks
Upvotes: 1
Views: 722
Reputation: 177
I think that this is very useful: http://www.shaunakelly.com/word/word-development/selecting-or-referring-to-a-page-in-the-word-object-model.html
Upvotes: 0
Reputation: 987
refer How to paginate a Word document from c# with Open XML in more
if you can generate xml for it.
Upvotes: 1