Why did ABCPdf code start generating a Window Error 5

ぐ巨炮叔叔 提交于 2019-12-05 21:30:26
dcary

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.

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

Have you got the new version of ABCpdf 8?

As with older versions they use the IE rendering engine, if you upgrade the server/machine which is running ABCpdf to IE8 or higher abc pdf no longer have access to the rendering engine and will produce some very very odd results.

With 8 and above I have found the most consistence rendering is gained by changing the rendering engine used

    theDoc.HtmlOptions.Engine = EngineType.Gecko;

this means youi are also not using IE which can only be a good thing.

We had this issue at work after some server updates. I resolved the problem by going to printers on the server and deleting the Microsoft XPS printer.

As soon as it was removed our PDF rendering came back!

Hope this helps!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!