Hi guys,
I’m currently upgrading to version 3.0.1.0 of Aspose.Word and have come across a font problem.
When I merge documents some of the documents get the default font of the first document which is coversheet generated on the fly. I remember going though pains with templates to get this working on the previous versions. Also I’m finding the export to PDF the fonts problems seem to get worse again the default font of the coversheet appear all over the place.
I had attach some files demostrating the problem. The winrar file contains two winrar file one with an example project showing an example of source code and the second with the dodgy Word and PDF, and what we get from our current live version (2.4.1.0) indicated by the *- live.doc
The only changes I had to make to upgrade was this change:
public static Aspose.Word.Document Merge(Aspose.Word.Document destination, Aspose.Word.Document source)
{
// while (source.Sections.Count > 0)
// {
// Section section = source.Sections[0];
// source.Sections.RemoveAt(0);
// destination.Sections.Add(section);
// }
foreach(Section sourceSection in source.Sections){
Section newSection = (Section) destination.ImportNode(sourceSection, true);
destination.Sections.Add(newSection);
}
source = null;
return destination;
}
I hope this helps you replicate the problem.
Regards
Toby