in reply to Re^4: how to convert this VB code to perl
in thread how to convert this VB code to perl
Hmmm... the Word 2007 Developer Reference is extensive...
After some experiments, I found that:
appeared to do the job.# Add the doc my $doc = $word_ref->Documents->Add ; my $obj_sel = $word_ref->Selection ; for (1..$count) { $obj_sel->InlineShapes->AddPicture($image) ; $obj_sel->InsertBreak() ; }
I discovered this by using the "Record macro" function in Word, doing the operations to insert a picture followed by a page-break, and then translating to Perl...
...the reference documentation will tell you what the things recorded in the macro are doing. But it's hard to discover what you need to do what you want -- which is the advantage of the record macro trick.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: how to convert this VB code to perl
by proton-69 (Novice) on Jan 28, 2009 at 05:06 UTC |