I can't determine exactly WHERE the image is supposed to be drawn.
I want it to be drawn in the CELL, directly to the right of the cell drawn with the value 'Photo' on line 7. I pass in the path to the image.
The cell created in line 7 shows but the photo is never printed at all.
Can anyone help, here?
1: public function doPhotoRow($imagelink) {
2: // Colors, line width and bold font
3: $this->setTitleColor('#C0C0C0');
4: $this->SetTextColor(0);
5: $this->setLineColor('#000000');
6: $headercellwidth = $this->getColumnWidthByPct(20); // Cell is 20% of (pagewidth-margins)
7: $this->Cell($headercellwidth, 7, 'Photo', 1, 0, 'C', 1);
8: $y = $this->GetY(); // Not sure if I need ot get this value for the Image() call.
9: $headercellwidth = $this->getColumnWidthByPct(80); // Cell is 80% of (pagewidth-margins)
10: $this->Image($imagelink, $headercellwidth, $y, 0, 100, 'JPG', '', 'M', true, 150, 'C', false, false, 0, false, false, false);
11: $this->Ln();
12: }