Page breaks when combining sections


#1

Hi,

When combining documents I am still getting the documents on seperate pages. I use the code below:

foreach (Section section in template.TemplateDocument.Sections)

{

Section sec = (Section)destTemplate.TemplateDocument.ImportNode(section, true, ImportFormatMode.KeepSourceFormatting);

destTemplate.TemplateDocument.Sections.Add(sec);

sec.PageSetup.SectionStart = SectionStart.Continuous;

}

In the document the section break says its continuous "Section Break (Continuous)" , but it is still breaks over the page.

Both documents are non code gerenerated documents.

Thanks,

Michael


#2

Please send us the source templates and the resulting document.