We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HTML to PDF - AxSHDocVw / SHDocVw reference problems.

Thread ID:





61735 May 31,2007 05:31 PM UTC Jun 1,2007 10:46 PM UTC WinForms 3
Tags: PDF
Peter Hess
Asked On May 31, 2007 05:31 PM UTC

I am trying to use the HTML to PDF functionality.

I am really close to getting it work but I need some help figuring out where to place the Interop Assemblies.
I get the following error at runtime:
Could not load file or assembly 'AxSHDocVw, Version=, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The system cannot find the file specified.

In Syncfusion's HTML_to_PDF.zip you have a Data
directory that contains an Interop Assemblies directory that contains AxSHDocVw.dll and SHDocVw.dll. I put the Data directory in various spots within my project directories but still get the "Could not load file or assembly" error.

I would appreciate some guidance on this.


Sarath Kumar G [Syncfusion]
Replied On June 1, 2007 12:20 AM UTC

Hi Peter,

Thank you for your interest in Syncfusion products.

Unable to load the assembly 'AxSHDocVw, Version=, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' error message occurs if the reference to the those .dll's are not done. Try adding reference to dll's AxSHDocVw,SHDocVw.dll. You can find these references from the following URL (if you are using Version 5).

C:\..\My Documents\Syncfusion\EssentialStudio\\Windows\Pdf.Windows\Samples\2.0\Data\Interop Assemblies

If you still face the same issue. Please send me some more details like Framework used, Essential Studio Version.

Please let me know if you face any issues.


Peter Hess
Replied On June 1, 2007 05:58 PM UTC

I have explicitly referenced them in my project when I get the error message.

In your HTML_to_PDF.zip version there is no reference made to AxSHDocVw.dll and SHDocVW.dll and yet it still works. It seems that the implementation of Syncfusion.HtmlConverter.Base must reference these but I am unsure of where I need to place them in my project for Syncfusion.HtmlConverter.Base to load them.


Sarath Kumar G [Syncfusion]
Replied On June 1, 2007 10:46 PM UTC

Hi Peter,

Thank you for your continued interest in Syncfusion products.

HTML_to_PDF Sample refers to the Assemblies( AxSHDocVw.dll and SHDocVW.dll ) in the bin folder of the application. "Syncfusion.HtmlConverter.Base" does not makes any internal reference to these assemblies. "Syncfusion.HtmlConverter.Base" makes use of MSHTML (Is a engine used to drive the browser) library which renders the HTML page and converts the it to a bitmap image or as a metafile image. The image is then rendered into the PDF document.

If you do not want to add reference to these assemblies, you can place these assemblies in the bin folder of your project. Else you can create a folder in your project and place these assemblies and then make a reference to them.

Please let me know for further help.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon