This will not work. $filename2 will not be interpolated. You should be using double-quotes (").
$Excel->ActiveSheet->Pictures->Insert('c:\projectword\$filename2.jpg');Careful on the names you assign to variables. You have $excel and $Excel. $Libro and $Hoja are from $excel. You are selecting a range on $excel, but adding the picture on $Excel.
You are not saving the changes to your $Libro.
# tendras que anadir $Libro->SaveAs("----");
In reply to Re^5: add image in a specific cell
by olus
in thread add image in a specific cell
by padawan_linuxero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |