Hi,
I'm trying to copy a multiple column document into another document, but end up with a document with only one column. I must be doing something seriously wrong here.
Here's the code:
while (oldDoc.Sections.Count > 0)
{
Section section = oldDoc.Sections[0];
Section newSection = (Section)_document.ImportNode(section, true);
oldDoc.Sections.RemoveAt(0);
_document.Sections.Add(newSection);
_document.Sections[_document.Sections.Count - 1].PageSetup.TextColumns.SetCount(2);
_document.Sections[_document.Sections.Count - 1].PageSetup.TextColumns.EvenlySpaced = true;
}