Widow/Orphan Control in RadFlowDocument

2 posts, 0 answers
  1. Jesse
    Jesse avatar
    2 posts
    Member since:
    Oct 2016

    Posted 04 Aug Link to this post

    I'm looking into the possibilities of using Telerik Document Processing instead of Telerik Reporting in order to get some better control over the "widows and orphans" problem that my report in Telerik Reporting has, specifically when table headers appear at the bottom of a page and the data appears at the top of the next, and when a table's footnote (or the last line of a paragraph) appears at the top of a new page by itself, separated from all other data.

    I imagine that using a RadFixedDocument could (hypothetically) allow me to control exactly where a paragraph or table breaks across a page, or gets pushed to a new page entirely, but that would be a lot of extra work to implement when I would expect that RadFlowDocument should already be able to do that. The problem is, I haven't found anything in the documentation or online about widow/orphan control in Telerik Document Processing, or even about how or when it determines where to wrap to a new page.

    Is there anything built in for this, or can I even see when a page is supposed to break at design-time to prevent stray lines at the top and bottom of pages?

  2. Anna
    Admin
    Anna avatar
    107 posts

    Posted 08 Aug Link to this post

    Hello Jesse,

    What you are describing exists in the docx document model as a boolean property called widow control. At this point RadWordsProcessing does not support this property. However, this means that when you export a RadFlowDocument, the property will have its default value, which in this case is true. In other words, every document you export will have widow control turned on by default. This applies for both export to pdf and to docx.

    I hope this helps. Please, let me know if you have any further questions.

    Regards,
    Anna
    Progress Telerik

Back to Top