Please find attached a template.
Below two code sections. Why is the font size on footer page 2 when using SaveToStream different from using SaveToFile?
Best regards,
Hubert
- Code: Select all
Document documentSaveToFile = new Document("Template.docx");
documentSaveToFile.SaveToFile("Output_SaveToFile.docx", FileFormat.Docx);
- Code: Select all
Document documentSaveToStream = new Document("Template.docx");
using (FileStream fs = new FileStream("Output_SaveToStream.docx", FileMode.OpenOrCreate))
{
using (MemoryStream ms = new MemoryStream())
{
documentSaveToStream.SaveToStream(ms, FileFormat.Docx);
fs.Write(ms.ToArray(), 0, ms.ToArray().Length);
}
}