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

i insert several pictures into a word file with $document->Shapes->AddPicture method. but those pictures overlaped. how can i seperate them?
  • Comment on insert picture into word with win32::ole

Replies are listed 'Best First'.
Re: insert picture into word with win32::ole
by Corion (Patriarch) on Aug 16, 2007 at 06:32 UTC
Re: insert picture into word with win32::ole
by vkon (Curate) on Aug 16, 2007 at 06:39 UTC
    $doc->Paragraphs->Add; my $lastpara=$doc->Paragraphs->Count; my $para = $doc->Paragraphs($lastpara); my $ran = $para->Range; $ran->{Start} = $ran->{End}; my $pict = $ran->InlineShapes->AddPicture({FileName=>"$fn", LinkTo +File=>$f});
      it worked, thank you very much :)