合并Word文档,重置任何编号/字母列表
我有一个桌面应用程序,可以在 Word 2003 模板上运行,然后将所有创建的文档合并到一个文件中。
该应用程序正在运行,但合并除外。合并不会重置任何编号/字母列表。我尝试了很多不同的方法,包括:
selection.Range.ListParagraphs[i].Range.ListFormat.ApplyListTemplate(selection.Range.ListParagraphs[i].Range.ListFormat.ListTemplate, ref continuePrevious, ref missing, ref missing);
甚至尝试将每个文档合并为子文档
document.Application.Selection.EndKey(ref unit, ref missing);
document.Application.Selection.Range.Subdocuments.AddFromFile(ref file, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing);
I have a desktop app that does work on a Word 2003 template then merges all the created documents into one file.
The app is working, except for the merging. The merge does not reset any numbered / lettered lists. I've tried a lot of different things including:
selection.Range.ListParagraphs[i].Range.ListFormat.ApplyListTemplate(selection.Range.ListParagraphs[i].Range.ListFormat.ListTemplate, ref continuePrevious, ref missing, ref missing);
and even trying to merge each document as a Subdocument
document.Application.Selection.EndKey(ref unit, ref missing);
document.Application.Selection.Range.Subdocuments.AddFromFile(ref file, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论