为什么 ABCPdf 代码开始生成窗口错误 5 [英] Why did ABCPdf code start generating a Window Error 5

查看:23
本文介绍了为什么 ABCPdf 代码开始生成窗口错误 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些长期存在的代码,它们在很长一段时间内都运行良好.最近它开始产生以下错误.第一个在 asp 站点上,后来在 .Net MVC 站点上.两者都没有改变.我真的很好奇为什么这个错误现在正在上升.我希望这篇文章对未来的人有用,因为很难找到解决方案,搜索错误本身.

I have had some long standing code which has worked fine for quite some time. Recently it began generating the following error. 1st on a asp site and later on a .Net MVC site. Neither of which have changed. I really curious as to why the this error now is rising. I am hoping this post will be of use to someone in the future since the solution was difficult to find searching the error itself.

错误:ABCpdf 错误 '80070000'无法呈现 HTML.无法获取打印机设备模式大小.Microsoft XPS Document Writer Windows 错误 5.访问被拒绝.

Error: ABCpdf error '80070000' Unable to render HTML. Unable to get printer device-mode size. Microsoft XPS Document Writer Windows error 5. Access is denied.

一些研究表明这是因为没有安装 xps writer,但事实并非如此,或者权限设置不正确.

Some research suggest that it is because the xps writer is not installed but this was not the case or that permissions were set up incorrectly.

推荐答案

http://www.websupergoo.com/support.htm# 支持问题 6.7 第 4 号.将下面的行添加到对象中,它起作用了.

http://www.websupergoo.com/support.htm# Support issue 6.7 number 4. Add the line below to the object and it worked.

Doc.SetInfo(0, "HostWebBrowser", "0");

这在两种情况下都奏效了.

This did the trick in both cases.

仅供参考,我认为 ABCPdf 8.1 版本解决了这个问题.

Just FYI, I think the ABCPdf 8.1 release addressed this issue.

这篇关于为什么 ABCPdf 代码开始生成窗口错误 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆