Hi,
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:
http://kb.discountasp.net/article.aspx?id=10293"
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()
theDoc.Rect.Inset(72, 144)
Dim theID As Integer
theID = theDoc.AddImageUrl("http://ufs.thefrogsystem.com/ufs/Default.aspx")
theDoc.Color.String = "0 0 0 "
theDoc.FontSize = 50
theDoc.AddText(DateTime.Now)
While True
theDoc.FrameRect()
If Not theDoc.Chainable(theID) Then
Exit While
End If
theDoc.Page = theDoc.AddPage()
theID = theDoc.AddImageToChain(theID)
End While
Dim i As Integer
For i = 1 To theDoc.PageCount
theDoc.PageNumber = i
theDoc.Flatten()
Next
theDoc.Save(Server.MapPath(varFileName))
theDoc.Clear()
PDFLink.NavigateUrl = varFileName
PDFLink.Target = "_Blank"
Thanks
James