InsertBreak

Dear Sir
I want to insert a sction in my document after a specified section I do it by this code:

Dim builder As DocumentBuilder = New DocumentBuilder(m_Document)
builder.MoveToSection(m_Document.IndexOf(m_Document.Sections(SelectedSectionId)))
builder.InsertBreak(BreakType.SectionBreakContinuous)

But this section insert in the first of my document .
How could I insert the section in a desire place?
Thanks
Mehdi Mokhtari

Hi
Thanks for your inquiry. MoveToSection method moves cursor of DocumentBuilder to the beginning of the section. I think that you can use MoveTo method. For example see the following code:

builder.MoveTo(m_Document.Sections[SelectedSectionId].Body.LastParagraph);

I hope this could help you.
Best regards.