设置 InfoPath 表单名称以打印为 PDF?

发布于 2024-09-14 09:35:59 字数 540 浏览 1 评论 0原文

我们有一些自定义打印代码,可以在用户的​​默认打印机以及基于服务器的 PDF 打印机上打印 Infopath 表单,以便加载到文档管理系统中。这工作得很好,但我们想控制生成的 PDF 文件的名称。 PDF 打印实用程序可以使用各种参数(例如文件名、当前日期/时间等)自动生成文件名。由于我们无法以编程方式与 PDF 打印实用程序交互,因此控制生成文件的名称的最简单方法是在 InfoPath 中设置文件名并允许实用程序附加日期/时间戳。

我已尝试按照论坛主题此处中的描述设置表单标题并按照论坛主题此处中所述设置另存为文件名,但无论如何,PDF 打印实用程序仍使用默认表单名称(Form1、Form2 等)。还有其他方法可以在代码中设置表单名称吗?

预先感谢您的帮助!

We have some custom print code to print an Infopath form on the user's default printer as well as a server-based PDF printer for loading into a document management system. This is working perfectly, but we would like to control the name of the generated PDF file. The PDF print utility can automatically generate a file name using various parameters such as file name, current date/time, etc. Since we cannot programmatically interface with the PDF print utility, the easiest way to control the name of the generated file would be to set the file name in InfoPath and allow the utility to append a date/time stamp.

I have tried setting the form caption as described in the forum thread here and setting the Save As file name as described in the forum thread here, but regardless, the PDF print utility still uses the default form name (Form1, Form2, etc.). Is there another way to set the form name in code?

Thanks in advance for your help!

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

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

发布评论

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

评论(1

梦在深巷 2024-09-21 09:35:59

您是否考虑过使用 InfoPath PDF Converter,您可以通过 Web 服务 API 更好地控制它?

查看PDF 转换服务以及适用于 SharePoint 的 PDF 转换器。它与 InfoPath 处理得很好。

一些其他链接

请注意,我曾经开发过这个产品,所以我显然有偏见。不过效果很好。

Have you considered using an InfoPath PDF Converter that you have more control over via a Web Services API?

Have a look at the PDF Conversion Services as well as the PDF Converter for SharePoint. It deals quite well with InfoPath.

Some additional links

Note that I have worked on this product, so I am obviously biased. It works great though.

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