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?