This is a migrated thread and some comments may be shown as answers.

Widow/Orphan Control in RadFlowDocument

1 Answer 13 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 04 Aug 2017, 04:56 PM

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?

1 Answer, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 08 Aug 2017, 12:02 PM
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

Tags
WordsProcessing
Asked by
Jesse
Top achievements
Rank 1
Answers by
Anna
Telerik team
Share this question
or