- Code: Select all
Document document = new Document()
document.InsertTextfromFile("9190 Magnesium Sulfate.docx");
document.InsertTextfromFile("4040 Seizure.docx");
document.SaveToFile("output.docx", FileFormat.Docx);
See attached input and output files. Several problems:
1) Line spacing on page 2 is 1.15 instead of 1.0
2) The paragraph spacing on page 2 isn't quite right--look right above "Document:" and "Pregnancy and Seizure:" under "Universal Seizure Precautions:"
3) The header from the first file become a global header--it should be a heading just for the pages from that file.