New Forum | Previous | Next | (P-PDF) Beginners
Topic: Problem inserting images in PDF
Conf: (P-PDF) Beginners, Msg: 72727
Date: 9/20/2002 05:33 AM
I am trying to insert an image into my pdf using hte following code and it returns failed suggesting that it does not seem to be able to find my image located on my c: drive
Dim lImage, Path, photoFile
Path = Request.ServerVariables("http_host")
photoFile = "c:\inetpub\wwwroot\images\bullet_black_square.jpg "
lImage = objPDF.open_image_file("jpeg", photoFile, "", 0)
If (lImage = -1) then
objPDF.show_boxed "Failed", BeginPosArry(0), InitHeight, WidthArray(2), 2*HeightSize, "left", ""
I have used
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("c:\inetpub\wwwroot\images\bullet_black_square.jpg") then
Response.write "File exists"
Response.Write "The file did not exist"
Set objFSO = Nothing
to see if it does exist and it does...
Any ideas why I can't open this image in my pdf??