merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
This works fine except that if the spreadsheet is sent to another computer the picture is no longer there and I get an error message saying “The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location”.$image_file_full = <full path to image> # get a cell in which the image is to be stored $cell_tg = $sheet->Range($range); # insert the image $pic_cur = $sheet->Pictures->Insert($image_file_full); # position the image in the top left hand corner of the cell $pic_cur ->{Top} = $cell_tg->Top; $pic_cur ->{Left} = $cell_tg->Left;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedding Image in Excell
by Corion (Patriarch) on Feb 16, 2011 at 10:12 UTC | |
by merrymonk (Hermit) on Feb 16, 2011 at 16:58 UTC | |
|
Re: Embedding Image in Excell
by Anonymous Monk on Feb 16, 2011 at 10:09 UTC | |
|
Re: Embedding Image in Excell
by cjb (Friar) on Feb 16, 2011 at 10:10 UTC | |
by merrymonk (Hermit) on Feb 16, 2011 at 17:17 UTC | |
|
Re: Embedding Image in Excell
by Anonymous Monk on Oct 05, 2011 at 19:01 UTC |