Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 850027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:11:51+00:00 2026-05-15T07:11:51+00:00

I have some problem with inserting image when i generate pdf using FPDF library

  • 0

I have some problem with inserting image when i generate pdf using FPDF library (ASP port version) you can get it here ASP FPDF

I have tried this code (this was ASP VBScript):


pdf.Image Server.MapPath("map.jpg"), 10, 10, 800, 400
pdf.Image "map.jpg", 10, 10, 800, 400
pdf.Image "http://localhost/pdf_test/map.jpg", 10, 10, 800, 400

None of the codes above work… it keeps throw an error:


Microsoft JScript runtime  error '800a138f'

Object expected

/pdf/libs/fpdf.asp, line 817

And from fpdf.asp line 817 (This was ASP JScript):


type=SupposeImageType(xfile);

However, without inserting image(s) a.k.a text-only pdf it works fine. Can someone help me fix this thing?

Thanks
Dels

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:11:52+00:00Added an answer on May 15, 2026 at 7:11 am

    this is the code i used to display image in the header. the problem i have is i want to use a variable for the image, when i put the variable name instead of the image name i get an error:

    Microsoft JScript runtime error ‘800a138f’

    ‘undefined’ is null or not an object

    /EKtestdb/fpdf/fpdf/includes/Basics.asp, line 121

        this.Header=function Header()
      {
      this.SetY (10)
      this.SetFont ("Times","",10)
      //this.Cell (45,5, "HEADER", 0, 0, "L")
      this.SetFont ("Times","b",14)
      //this.Cell (190,5, this.title, 0, 0, "C")
      this.Cell (190,20, this.title, 0, 0)
      this.SetFont ("Times","",10)
      this.Image('logoSM1.jpg',165,3,33)
      this.Image( techpic ,165,3,33)
    

    this is the code for basics.asp line 121:

    this.strrpos=function strrpos(s,ch){
     res = s.lastIndexOf(ch)
     if (res>0-1){return res}else{return false}
    }
    this.strpos=function strpos(s,ch,start){
     if (arguments.length<3){start=0}
     res = s.indexOf(ch,start);
     if (res>-1){return res}else{return false}
    }
    

    if you just want to display an image this line should work:

    this.Image('logoSM1.jpg',165,3,33)
    

    but for using a variable instead of image name can someone help with this?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 417k
  • Answers 417k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Basically what you want is an event that fires every… May 15, 2026 at 9:41 am
  • Editorial Team
    Editorial Team added an answer From the docs: Supported in: 4, 3.5, 3.0, 2.0, 1.1,… May 15, 2026 at 9:41 am
  • Editorial Team
    Editorial Team added an answer "precondition" when it's one, "preconditions" when it's more than one? May 15, 2026 at 9:41 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.