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.
In reply to Re^5: how to convert this VB code to perl
by gone2015
in thread how to convert this VB code to perl
by proton-69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |