The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
SKSarath Kumar G Syncfusion Team June 1, 2007 12:20 AM UTC
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).
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
PHPeter HessJune 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.
Thanks, Peter
SKSarath Kumar G Syncfusion Team 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.