Aspose.Word 会处理目录 (TOC) 吗?

发布于 2024-10-02 03:05:24 字数 325 浏览 0 评论 0原文

我们使用 aspose.word 将 Word 模板直接创建为 PDF 格式的报告。现在我们陷入了处理文档目录的困境。我们需要目录是动态的,并根据该部分在文档中的位置进行正确的更改。

aspose 会处理将正确的页码放入正确的类别吗?谁能举一个简短的例子? aspose 网站上的示例在这种情况下没有帮助。

我们使用 Visual Studio 来制作这个网站,它在 aspose 文档中说,目录的设置首先在常规 Word 文档上设置,然后复制字段代码。因此,我采用这种方式,在模板本身上设置 TOC,然后将字段代码复制到 C# 代码。或者我是否想得太多了,我所需要做的就是确保模板本身的目录是正确的。

We're using aspose.word to create a report from a word template direct to PDF format. Now we're stuck at handling the TOC for the document. We need the TOC to be dynamic and make correct changes according to where the section is on the document.

Would aspose handle putting the correct page number to the correct category? And can anyone give a short example? The example on the aspose site wasn't helpful in this case.

We're using visual studio to make this site and it says on the aspose documentation that the setting for a TOC is set first on a regular word document then copy the field codes. So I'm approaching it this way, setting the TOC on the template itself then copying the field code to the C# code. Or am I over thinking it and all I need to do is make sure that the TOC is correct on the template itself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

池予 2024-10-09 03:05:24

我与 Aspose 合作过一段时间,我记得,他们实际上并没有进行任何重新分页,而这是正确重新生成具有正确页码的目录所必需的。

您可能需要给他们打电话。我记得,很容易就能联系到他们的支持。由于一些限制,我最终没有使用他们的产品,但对于一般用途来说,它似乎相当不错。

I worked with Aspose for a bit, and as I recall, they don't really do any repagination, which is what would be necessary to properly regenerate a TOC with proper page numbers.

You may need to put an call into them. As I recall, their support was pretty easy to get in touch with. I didn't end up using their product because of some of the limitations, but for general use, it seemed pretty decent.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文