Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 22, 2009 03:11 AM by qvo178
May 10, 2007 04:45 PM|LINK
I have my hosting with discountasp.net and want to be able to pass a url in the pdf object.
I've just found out that for security reasons:
"the AddImage is not supported on our server, for more information, please see our kb article at:
This means that my reporting feature won't work now.
I contacted websupergoo about this and there response was:
"ABCpdf uses the Microsoft MSHTML component (installed with Internet Explorer) to process HTML. If your host has prevented MSHTML from accessing the Internet, perhaps it would be possible to access a URL based on the IP address of your server, a "localhost://"
or "file://" format URL."
Can anybody shed any light on this ?
I have the IP address of the server and my code at the moment is as follows:
Dim varFileName = "../System/LoggedIn/CreatedTextFiles/" & DateTime.Now.ToString("mmssffffff") & ".pdf"
Dim theDoc As Doc = New Doc()
Dim theID As Integer
theID = theDoc.AddImageUrl("http://ufs.thefrogsystem.com/ufs/Default.aspx")
theDoc.Color.String = "0 0 0 "
theDoc.FontSize = 50
If Not theDoc.Chainable(theID) Then
theDoc.Page = theDoc.AddPage()
theID = theDoc.AddImageToChain(theID)
Dim i As Integer
For i = 1 To theDoc.PageCount
theDoc.PageNumber = i
PDFLink.NavigateUrl = varFileName
PDFLink.Target = "_Blank"
May 11, 2007 09:25 AM|LINK
May 11, 2007 09:31 AM|LINK
May 11, 2007 11:08 AM|LINK
Jul 22, 2009 03:11 AM|LINK
This error message really frustrate me after spending many hours finally I got it working thank god.
Basicall you can set the localhost url and it will works just fine. Check out how to do it here.