Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Aug 30, 2016 12:52 am

How would I retrieve the Page Number of the docx file that a given TextBox belongs to ( i.e. the first Page Number that the TextBox will be rendered into ) ?

Sorry if this is a redundant question... the Search on the site removes the keywords Textbook and Page Number, says the are too generic . Lol

jason@cragun.net
 
Posts: 2
Joined: Sun Aug 21, 2016 11:24 pm

Tue Aug 30, 2016 3:03 am

Dear Jason,

Thanks for your inquiry.
Sorry that there is no way to get the page number of the page that a given textbox belongs to. Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Aug 30, 2016 11:22 am

Well, that is too bad. Nevertheless, thank you for the response. Please do consider adding the ability to determine the rendered page number(s) for any element of the document. Or perhaps an event "ElementDidRender" that includes a "RenderingEventArgs.PageNumber" or "PageRange" or something of that nature.

thanks

jason@cragun.net
 
Posts: 2
Joined: Sun Aug 21, 2016 11:24 pm

Wed Aug 31, 2016 1:42 am

Dear Jason,

Thanks for your advice.
Sorry that it is not possible to achieve that, because MS Word document is flow document and does not contain any information about its layout into lines and pages, we cannot get the page number(s) for any element of the document.
Sorry for inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc