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
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 is the code for basics.asp line 121:
if you just want to display an image this line should work:
but for using a variable instead of image name can someone help with this?