Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Jan 07, 2022 6:05 am

Hi.

I have a question about merging doc.

I know that use the InsertTextFromFile function for combine files.

But I think what I want is a little different.

There are files with different headers.
When the files are merged, the header of the first file applies to the document.
But I want to keep the header of each file.

Is there a way to keep the header of each file when merging files?

Sungkyu_min
 
Posts: 30
Joined: Fri Jan 07, 2022 5:53 am

Fri Jan 07, 2022 8:03 am

Hello,

Thanks for your inquiry.
I used the latest version of Spire.Doc (Spire.Doc Pack (hot fix) Version: 9.12.12) to do an initial test, but did not reproduce the issue you mentioned. If you were not using the latest version of Spire.Doc, I suggest you try it. If the issue still exists after trying, please provide the following information for our investigation. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.
1) Your input Word files.
2) Your complete test code (so that we can know the merging order of your Word files)
3) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
4) Your application type, such as Console app (. Net Framework 4.5).

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc