Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Insert Image to Word using perl

by Anonymous Monk
on Apr 19, 2012 at 21:30 UTC ( #966042=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone here have any sample code that will insert image to a word file? I am trying to use win32:ole but I am new to this so thats why I guess I can't figure it out. Thanks

Replies are listed 'Best First'.
Re: Insert Image to Word using perl
by davies (Parson) on Apr 19, 2012 at 23:06 UTC

    No, but you might find something useful in Adding pictures to Excel, in which Albannach and I combine to answer a comparable question from merrymonk regarding Excel. If you want anything better, I'm afraid you're going to have to show us what you have tried.


    John Davies

Re: Insert Image to Word using perl
by Ratazong (Monsignor) on Apr 20, 2012 at 06:12 UTC

    See here for a long example on how to use Win32::OLE with word. You will probably be most interested in the sub insert_picture somewhere in the middle.

    HTH, Rata

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://966042]
Approved by davido
[Corion]: Hah. I just had this idea for another EMACS backronym, but I still need to make it happen. "Eight Machines And Constantly Synching" - I envision a NodeJS+Kybernetes based infrastructure communicating between the syntax highlighter machine, the ...
[Corion]: ... screen render machine, the file store machine and five more (maybe for redundancy?), just to write print "Hello World"; ;)
[Corion]: Ah, maybe one machine could be the compiler host, which constantly compiles the Elisp to Javascript to serve to all the other machines running it...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-04-26 11:26 GMT
Find Nodes?
    Voting Booth?