Мне нужно использовать С# программно, чтобы добавить несколько существующих файлов docx
в один, длинный docx
файл, включая специальные разметки, такие как маркеры и изображения. Информация заголовка и нижнего колонтитула будет удалена, поэтому они не будут возникать из-за проблем.
Я могу найти много информации о том, как манипулировать отдельным файлом docx
с .NET Framework 3, но ничего проще и не о том, как объединить файлы. Существует также сторонняя программа (Acronis.Words), которая сделает это, но это слишком дорого.
Обновление:
Было предложено автоматизировать с помощью Word, но мой код будет запущен на ASP.NET на веб-сервере IIS, поэтому выход в Word не является для меня вариантом. Извините, что не упоминал об этом в первую очередь.