RadEditor ExportToPDF 未在客户端环境中生成 PDF

发布于 2024-11-17 03:29:08 字数 762 浏览 3 评论 0原文

我们使用 Telerik RadEditor 控件,特别是因为它能够通过控件上的 ExportToPDF() 方法呈现 PDF。我们发现这在我们的开发和测试环境中效果很好,但一旦进入客户环境就失败了。我所说的失败是指,通常当您执行 ExportToPDF() 方法时,会弹出一个对话框,其中包含 PDF 文件的名称、大小以及是否要打开它或保存它。在我们的客户端环境中,会出现该对话框窗口,但不会显示文件大小。如果保存该文件,它是一个空白文档。计算机/环境的设置相同(Windows Server 2003 上的 IIS 6)。唯一的例外是我们客户的计算机处于安全环境中,无法访问互联网。

我们将套用信函加载到控件中,然后在用户单击按钮后创建 PDF,因此我认为这不是由错误数据/无效字符导致 PDF 无法生成造成的。

我的问题是:是否有人有在无法访问互联网的环境中运行 ExportToPDF() 命令的经验?这可能是权限问题吗?我似乎找不到有关 ExportToPDF() 功能是否使用临时目录在渲染时将 PDF 写入其中的文档。可能就这么简单,但我很难研究这个问题。

我还在 ExportToPDF() 方法周围放置了一个 try / catch 块,我知道它不会引发任何错误。

我们正在运行旧版本的 RadEditor - 2009.3.1208 - 它与其他 Telerik 工具一起在大型应用程序中运行,因此升级整个 RadControl 套件并非易事(b/c 测试等),并且需要一些时间。

关于下一步尝试什么的任何建议/有人在使用此控件时遇到过类似的情况吗?

提前感谢您的帮助!

理查德

We are using the Telerik RadEditor control, specifically for it's ability to render a PDF via the ExportToPDF() method on the control. We find that this works great in our development and test environments but fails as soon as we get to our client's environment. What I mean by fails is that typically when you execute the ExportToPDF() method, a dialog box pops up with the name of the PDF file, it's size, and whether you want to open it or save it. In our client's environment that dialog window appears, but the file size does not appear. If you save the file, it's a blank document. The machines / environments are equal in their setup (IIS 6 on Windows server 2003). The only exception is that our client's machine is in a secure environment with no access to the internet.

We are loading form letters into the control and then creating the PDF once the user clicks a button, so I don't think this is being caused by bad data / invalid characters causing the PDF not to generate.

My questions are: does anyone have experience running the ExportToPDF() command in an environment with no access to the internet? Could this be a permissions issue? I can't seem to find documentation on whether the ExportToPDF() functionality uses a temporary directory to write the PDF out to while it's rendering. It may be as simple as that, but I'm having a hard time researching this issue.

I've also put a try / catch block around the ExportToPDF() method and I know it's not throwing any errors.

We are running an older version of RadEditor - 2009.3.1208 - it runs in a large application with other Telerik tools so upgrading the entire RadControl suite is not trivial (b/c of testing, etc) and is taking some time.

Any suggestions on what to try next / has anyone encountered anything like this with this control?

Thanks for your help in advance!

Richard

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

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

发布评论

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

评论(1

青春有你 2024-11-24 03:29:08

我怀疑导出功能是否需要有效的互联网连接。您的安全环境中的某些东西很可能会默默地阻止导出,而且这种情况不会轻易发生。我的建议是检查您在用户计算机上拥有的权限/进程,并在本地环境之外测试相同的权限/进程以比较结果。

I doubt that the export functionality needs an active internet connection. Most likely something in your secured environment is blocking silently the export and it does not simply happen. My recommendation is to check the permissions/processes you have on the user machine and test the same outside of the local environment to compare the results.

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