Solved

Error No MSHTML document is available AbcPDF v7

Posted on 2010-09-22
13
2,101 Views
Last Modified: 2012-05-10
Hi,

I have tried the following:

Set theDoc = Server.CreateObject("ABCpdf7.Doc")
Response.Write("License: " & theDoc.License & "<br>")

This works fine, results in Professional License

Then tried the following:

Set theDoc = Server.CreateObject("ABCpdf7.Doc")
theDoc.AddImageUrl "http://www.google.com/"
theDoc.Save "C:\pdfs\test.pdf"

I have set the permissions correctly, but recieve an error:

ABCpdf error '80070000'

Unable to render HTML. No MSHTML document is available.

/abcpdftest/pdftest.asp, line 11

Line is: theDoc.AddImageUrl "http://www.google.com/"

Any help is appreciated.


0
Comment
Question by:sanjshah12
13 Comments
 
LVL 9

Expert Comment

by:shalabhsharma
ID: 33759230
0
 

Author Comment

by:sanjshah12
ID: 33913416
Hi,

I have tried the suggestions in the linked message but still cannot get this to work, any other potential ideas?
0
 
LVL 1

Expert Comment

by:code4food
ID: 34310007
Did you ever find a solution to the problem you posted about "Unable to render HTML. No MSHTML document is available." in abcPDF7? I have the same issue now after installing it on one of my servers. Thanks.
0
 

Author Comment

by:sanjshah12
ID: 34321613
code4food, unfortunately nope no solution yet.
0
 
LVL 1

Expert Comment

by:code4food
ID: 34321705
I changed back to abcPDF version 6.1 proffesional COM (not .net) and it worked without a problem. I only needed the COM version, not the .net version. That was my solution - not much of one but it works!
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:sanjshah12
ID: 34322676
Thanks I have asked to download version 6.1 from Cleverbridge.

0
 

Author Comment

by:sanjshah12
ID: 35115742
Still could not get this to work, what components does MSHTML rely on?
0
 
LVL 1

Expert Comment

by:code4food
ID: 35116733
sanjshah12,
  I recently loaded abcPDF7 .Net onto a Windows 2003 Server, wincing, because I was afraid of seeing the same problem that you did, and which I encountered on a different server. To my surprise, it worked flawlessly. It made me think about this question, so I have done a little investigation, and this is what I have come up with:

1.) The problem ("bad") server has asp.net versions 1.1, 2 and 4 on it. The "good" server has only asp.net versions 1.1 and 2.  On the good server, the site is operating under asp.net version 2.0.50727. On the bad server, I had already removed the abcpdf7 component. I also noticed the site is operating under asp.net version 1.1.  I switched the asp.net version to 2.0.50727, and reinstalled the abcPDF7 .Net component. Guess what? It worked this time on the "bad"server.

Please try that out. Make sure the site is running in asp.net version 2, and run the site. If that does not work, remove abcpdf7 and then reinstall leaving your site set at asp.net 2. It should work.

0
 

Author Comment

by:sanjshah12
ID: 35116756
Thanks code4food for looking into this, I'll check .Net version and ensure its running .NET 2 as suggested and let you know the result.
0
 
LVL 1

Expert Comment

by:axbernardi
ID: 35180042
Unfortunatelly, all the solutions didn't work for me.
My solution consists in installing the latest version on ABCpdf, version 8.
The default behavior presents the same problem but there is an intresting workaround. From v. 8 ABCpdf includes a native Gecko render engine instead of relying on IE. So, after creating the document, set the Gecko engine... and enjoy!
This is how it is done
<%
Set theDoc = Server.CreateObject("ABCpdf8.Doc")
theDoc.HtmlOptions.Engine=1
%>

Open in new window

0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 35783795
Question PAQ'd and stored in the solution database.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now