?
Solved

Error No MSHTML document is available AbcPDF v7

Posted on 2010-09-22
13
Medium Priority
?
2,149 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
11 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

749 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