Solved

Error No MSHTML document is available AbcPDF v7

Posted on 2010-09-22
13
2,109 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
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: 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

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.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

930 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

11 Experts available now in Live!

Get 1:1 Help Now