Page numbering when save as docx

5 posts, 0 answers
  1. George
    George avatar
    8 posts
    Member since:
    Oct 2017

    Posted 22 Jun Link to this post

    Hi,

    When a RadDocument is exported to docx file, page numbering doesn't work correctly. The total count and current page number is 1 on every page. When the same document is exported in pdf the numbering is fine... I'm using the code from you sample projects - CustomField class from CustomField_WPF used in TelerikEditorDemo_WPF project.

  2. Peshito
    Admin
    Peshito avatar
    548 posts

    Posted 27 Jun Link to this post

    Hi George,

    Word is not showing correctly the page numbering because it does recognize the field. You should use one of the fields that Word is aware of. You can find more information about them here.

    Regards,
    Peshito
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. George
    George avatar
    8 posts
    Member since:
    Oct 2017

    Posted 31 Jul in reply to Peshito Link to this post

    Hi,

    Sorry for the late reply.

    Can you please give an example of using field for page numbering that Word recognizes and also works for PDF?

  4. George
    George avatar
    8 posts
    Member since:
    Oct 2017

    Posted 01 Aug Link to this post

    Hi,

    I used "PAGE" field and it works in Word.

    Thanks.

  5. Tanya
    Admin
    Tanya avatar
    718 posts

    Posted 03 Aug Link to this post

    Hi George,

    Yes, the PAGE field is recognized in MS Word. To elaborate more on the case, the custom field defined in the example you have found is not defined in the fields that MS Word recognizes and can be used only in RadRichTextBox. If you would like to show the current page number, you can use the PAGE field and NUMPAGES will show you the total number of pages in the document.

    Hope this is helpful.

    Regards,
    Tanya
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top