abcpdf 8 .net throwing unhandled exception in w3wp process

天涯浪子 提交于 2019-12-08 06:27:45

问题


I'm trying to use ABCPDF.net 8 to create a pdf from html content.

When using the method AddHtml, this works fine.

However, I need to take in the styles too, so I need to use AddImageHtml. But using this method causes the w3wp process to throw an exception. When I debug through the code with Reflector the exception seems to come at different places, making me think it is maybe some kind of memory thing... (nice and specific, I know).

My abcpdf code is as simple as...

global::WebSupergoo.ABCpdf8.Doc doc = new WebSupergoo.ABCpdf8.Doc();

doc.AddImageHtml(test);

...and I'm doing this in the page render.

Any one had any experience of abcpdf throwing generic exceptions in the w3wp process?


回答1:


I think this has something to do with the fact that I have IE9 installed - when I switch abcpdf to use the Gecko rendering engine, everything works...



来源:https://stackoverflow.com/questions/5300720/abcpdf-8-net-throwing-unhandled-exception-in-w3wp-process

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