Problem with load image using FPDF in ASP
Hi all.
I have problem to generate PDF document using FPDF.
The documentation for FPDF is in Italian and I cant understand.
There is no problem with my PDF if I didnt include the code for loading image.
That makes me think that the code below is maybe wrong.
Code:
pdf.Image 2,250,250,168,53,"JPG","logo_LPJ.jpg"
The error is:
ADODB.Stream (0x800A0BBA)
File could not be opened.
/lpj/mybiotec/fpdf/includes/images.asp, line 33
I put logo_LPJ.lpj at the same location with asp file.
Hope anyone here can help me with this problem. Thanks in advance.
Re: Problem with load image using FPDF in ASP
Include the complete path to the image with the image file name and see if that works.
Re: Problem with load image using FPDF in ASP
Quote:
Originally Posted by
azrina
Hi all.
I have problem to generate PDF document using FPDF.
The documentation for FPDF is in Italian and I cant understand.
There is no problem with my PDF if I didnt include the code for loading image.
That makes me think that the code below is maybe wrong.
Code:
pdf.Image 2,250,250,168,53,"JPG","logo_LPJ.jpg"
The error is:
ADODB.Stream (0x800A0BBA)
File could not be opened.
/lpj/mybiotec/fpdf/includes/images.asp, line 33
I put
logo_LPJ.lpj at the same location with asp file.
Hope anyone here can help me with this problem. Thanks in advance.
I think you have too many arguments try something like this:
Code:
pdf.Image "logo_LPJ.jpg",10,20,33,0," ","http://www.fpdf.org/"
the last section links to a website if you click on the image, without the link it should look like this:
Code:
pdf.Image "logo_LPJ.jpg",10,20,33,0," "