Results 1 to 3 of 3

Thread: Problem with load image using FPDF in ASP

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    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.
    Last edited by azrina; Jun 10th, 2007 at 10:03 PM.

  2. #2
    Addicted Member
    Join Date
    Mar 2006
    Posts
    235

    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.

  3. #3
    New Member
    Join Date
    Jun 2010
    Posts
    1

    Re: Problem with load image using FPDF in ASP

    Quote Originally Posted by azrina View Post
    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," "

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width