Last post Jul 21, 2009 11:11 PM by qvo178
May 10, 2007 12:45 PM|fizzystutter|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 05:25 AM|jeremyh|LINK
May 11, 2007 05:31 AM|fizzystutter|LINK
May 11, 2007 07:08 AM|fizzystutter|LINK
Jul 21, 2009 11:11 PM|qvo178|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.