Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

add image in a specific cell

by padawan_linuxero (Scribe)
on Feb 29, 2008 at 16:00 UTC ( [id://671198]=perlquestion: print w/replies, xml ) Need Help??

padawan_linuxero has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks I have a problem in a report I need to add an image of a barcode, the thing is that when I try to do this
$Hoja -> Range("E47")->Select(); $Excel->ActiveSheet->Pictures->Insert('c:\projectword\1.jpg');
is putting the image way up like in the B7 or something like that, my question is how can I tell Perl to put the image in E47??? thank you please this is urgent

Replies are listed 'Best First'.
Re: add image in a specific cell
by olus (Curate) on Feb 29, 2008 at 16:18 UTC

    What module are you using? Spreadsheet::WriteExcel has a insert_image($row, $col, $filename, $x, $y, $scale_x, $scale_y) method.

      Hi !!! I am using WIN32::OLE only, can I combine both modules?

        I tried your code and it worked. Just to make sure, have you called Activate on your $Hoja? Like:

        $Hoja = $workbook->>Worksheets(1); $Hoja->Activate();

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://671198]
Approved by olus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2026-04-21 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.