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.
Unfortunately, activation email could not send to your email. Please try again.

HTML to PDF - AxSHDocVw / SHDocVw reference problems.

Thread ID:

Created:

Updated:

Platform:

Replies:

61735 May 31,2007 01:31 PM Jun 1,2007 06:46 PM Windows Forms 3
loading
Tags: PDF
Peter Hess
Asked On May 31, 2007 01:31 PM

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=1.1.0.0, 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.

Thanks,
Peter

Sarath Kumar G [Syncfusion]
Replied On May 31, 2007 08:20 PM

Hi Peter,

Thank you for your interest in Syncfusion products.

Unable to load the assembly 'AxSHDocVw, Version=1.1.0.0, 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\5.1.0.51\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.

Regards,
Sarath

Peter Hess
Replied On June 1, 2007 01:58 PM

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.

Thanks,
Peter

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

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.

Regards,
Sarath

CONFIRMATION

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.

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.

;