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

RasWordsProcessing - Divide page in different section

1 Answer 122 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Pinkesh
Top achievements
Rank 1
Pinkesh asked on 02 Oct 2015, 03:19 PM

Hi,

 

I am new in using RadWordsProcessing , I am building report in docx. Requirement is too divide one page in different section, so that i can turn off particular section based on user requirement. How can i divide one page in different section ? because when i try to create other section, it gets created in next page.

1 Answer, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 06 Oct 2015, 11:22 AM
Hello Pinkesh,

I am not sure I clearly understand your question and what exactly you are trying to achieve.

As an introduction, I would like to explain that a document is constructed by sections and the sections are containing the paragraphs and tables. The is no separate object to contain information about the page. However, a section could be divided into pages by inserting a Break element with type PageBreak into a paragraph. In other words, a page cannot be split only the content in a section can in a way representing different pages.

In RadWordsProcessing, this could be done in two ways. By using the RadFlowDocumentEditor.InsertBreak(BreakType.PageBreak) method who will insert a Break element into the current paragraph, as the Break element is an inlined element. Of course, you could insert directly a Break element into a paragraph.

I hope this information is helpful for you.

Regards,
Mihail
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
WordsProcessing
Asked by
Pinkesh
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Share this question
or