Hello,
I am having a problem with merging documents together and was hoping there would be a solution to this. Currently We are combining RadDocuments together with the following code found on another thread.
This does combine the documents but it messes with the formatting of them. Documents seem to inherit the header/footer properties of the other document and will also change the spacing and FontFamily of the document. I thought that this had something to do with the default values for a new RadDocument but I can't seem to figure out how to preserve each individual documents formatting when combining them.
I basically would like to append a document to another one and keep them looking the same as they used to just on another page (Their own headers/footers, spacing, font etc). If there is a way to do this I would appreciate any help on how to accomplish this.
Thanks,
Aaron
I am having a problem with merging documents together and was hoping there would be a solution to this. Currently We are combining RadDocuments together with the following code found on another thread.
private
RadDocument MergeDocuments(RadDocument[] documents)
{
RadDocument mergedDocument =
new
RadDocument();
foreach
(RadDocument document
in
documents)
{
foreach
(Section section
in
document.Sections)
{
Section copySection = section.CreateDeepCopy()
as
Section;
document.Sections.Remove(section);
mergedDocument.Sections.Add(copySection);
}
}
return
mergedDocument;
}
This does combine the documents but it messes with the formatting of them. Documents seem to inherit the header/footer properties of the other document and will also change the spacing and FontFamily of the document. I thought that this had something to do with the default values for a new RadDocument but I can't seem to figure out how to preserve each individual documents formatting when combining them.
I basically would like to append a document to another one and keep them looking the same as they used to just on another page (Their own headers/footers, spacing, font etc). If there is a way to do this I would appreciate any help on how to accomplish this.
Thanks,
Aaron