Solved

Error No MSHTML document is available AbcPDF v7

Posted on 2010-09-22
13
2,112 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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
 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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