qiq
03-18-2004, 02:52 AM
Hi
I have just started using ABCpdf and I get it to work when I just add text to a doc, e.g.
Dim theDoc As Doc = New Doc()
theDoc.Width = 4
theDoc.FontSize = 32
theDoc.Rect.Inset(20, 20)
theDoc.FrameRect()
theID = theDoc.AddHTML(theText)
While theDoc.GetInfo(theID, "Truncated") = "1"
theDoc.Page = theDoc.AddPage()
theDoc.FrameRect()
theID = theDoc.AddHTML("", theID)
End While
theDoc.Save(Server.MapPath("textflow.pdf"))
theDoc.Clear()
BUT ... when I try to add an image I run into problems. I get
"AddImageObject is not a member of Websupergoo.ABCpdf3"
... when I add the following to the code.
Dim theImg As XImage = New XImage()
theImg.SetFile("sample.jpg")
theDoc.AddImageObject(theImg, false)
Can anybody suggest a solution ?
Regards
I have just started using ABCpdf and I get it to work when I just add text to a doc, e.g.
Dim theDoc As Doc = New Doc()
theDoc.Width = 4
theDoc.FontSize = 32
theDoc.Rect.Inset(20, 20)
theDoc.FrameRect()
theID = theDoc.AddHTML(theText)
While theDoc.GetInfo(theID, "Truncated") = "1"
theDoc.Page = theDoc.AddPage()
theDoc.FrameRect()
theID = theDoc.AddHTML("", theID)
End While
theDoc.Save(Server.MapPath("textflow.pdf"))
theDoc.Clear()
BUT ... when I try to add an image I run into problems. I get
"AddImageObject is not a member of Websupergoo.ABCpdf3"
... when I add the following to the code.
Dim theImg As XImage = New XImage()
theImg.SetFile("sample.jpg")
theDoc.AddImageObject(theImg, false)
Can anybody suggest a solution ?
Regards