Search code examples
c#abcpdf

Access to the registry key is denied (ABCPdf)


I am trying out ABCPdf 8.1 and when using the AddImageUrl(...) method I get the following error:

Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl' is denied.

I have looked in the registry and main\featurecontrol does not exist for CURRENT_USER so I cannot change permissions on it.

Has anyone experienced this before, or know of any solutions I could try?

Thanks in advance


Solution

  • Perhaps it's a problem between IE9 and ABCPDF.If this error comes by using AddHtml() or AddImageHtml() , I suggest you to change the Rendering Engine from MSHtml to Gecko.

    theDoc.HtmlOptions.Engine = EngineType.Gecko;
    

    http://www.websupergoo.com/support.htm

    In my case, this solution solved my error.