Dear fcs,
Thanks for your feedback.
After testing with the latest
Spire.Doc Pack(hot fix) Version:6.2.3, everything worked fine on my side. Here is my testing code and I attached my result document.
- Code: Select all
Document sourceDoc = new Document(@"F:\input.docx");
//create a new file
Document destinationDoc = new Document();
//copy the content
foreach (Section sec in sourceDoc.Sections)
{
destinationDoc.Sections.Add(sec.Clone());
}
destinationDoc.SaveToFile("13124.docx");
1. As for the issue undesired "new page" section break at the beginning of the document, did you use the latest version? What is your code ?
2. For the page size issue, I found both the result you provided and the result I generated were letter on my side. You could check the screenshot as below.
WordVersion.png
What is your OS information ? E.g. Win7 64bit, China/Chinese. And the Word version ?
WordVersion.png
Besides, we promise to keep customer's data confidential and won’t use it for any other purpose. You could send your file(
support@e-iceblue.com) to us via email.
Sincerely,
Betsy
E-iceblue support team
Login to view the files attached to this post.