将 Infopath 表单合并到文档库中并制作一个 PDF
我想将不基于同一模板的 infopath 表单合并到文档库中。我检查了开箱即用的合并功能,但它以一种奇怪的方式组合表单,这意味着所有表单中的所有重复部分在一起以及所有重复表在一起,这不是我想要的。我只想在第一个表单的末尾附加一个信息路径表单,依此类推。意味着一个大文件将依次包含所有这些 Infopath 表单。实现此目标后,我想将其转换为 PDF。
任何好的方向将不胜感激。
I want to combine infopath forms in a document library which are not based on a same template. I checked the outofthe box Merge Functionality but it combines forms in a strange way means all the repeating sections from all forms together and all the repeating tables together and that is not what I want. I just want to attach one infopath form at the end of the first and so on. Means a big file will contain all these Infopath forms one after other. After I achieve this I want to convert it to PDF.
Any good direction will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能的,因为 xml 无效(InfoPath 中不可能有 2 个同名节点)。
至于转换为 PDF,请查看我的 IP2HTML 项目(您需要一个第 3 方组件将 html 转换为不过,pdf)。您可以使用代码构建自己的控制台应用程序或功能区中的自定义操作,当执行/单击时,它将迭代所有项目,从表单获取 xml 数据并将其与 xslt 样式表合并(您需要手动将其从 .xsn 文件中提取)到 html 字符串中。然后您可以使用 StringBuilder 将所有表单附加到一个大表单中并将其转换为 pdf。
i don't think this is possible because the xml would be invalid (having 2 nodes with the same name is not possible in InfoPath).
As for the converting to PDF, check out my IP2HTML project (you will need a 3rd party component to convert html to pdf though). You could use the code to build your own console app or custom action that sits within the ribbon, and when executed/clicked it will iterate all items, gets the xml data from the forms and merges it with the xslt stylesheet (you manually need to extract it from the .xsn file) into a html string. Then you could use a StringBuilder to append all forms into a big one and convert it to pdf.