Re: insert picture in Word using Perl OLE

2004-10-18 Thread work
Quoting just me <[EMAIL PROTECTED]>:
> .
>   $msword->{Visible} = 1 ;
>   $msword->{DisplayAlerts} = 1 ;
>   my $doc1 = $msword->Documents->Add() ;  
>   $doc1->Shapes->AddPicture("D:\logo.gif",0,1);
> 
> ...
> 
> The picture doesn't show up in the word doc.
> Is this the correct why to insert pictures into Word
> using OLE? I saw another Class called InlineShapes.
> Should i use that instead?
> thanks

You have two options:

my $image_1 = $doc1->Shapes->AddPicture(D:\logo.gif',
   False, True, 200, 200, 50,50); # location 200x200, size 50x50

# or

my $image_2 = $doc1->InlineShapes->AddPicture('D:\logo.gif', False, True);



Nathaniel Bartusiak
TTMS, Keesler AFB 
 

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


insert picture in Word using Perl OLE

2004-10-18 Thread just me
hi

i am trying out Win32::OLE to insert a picture to a
Word doc.

.
  $msword->{Visible} = 1 ;
  $msword->{DisplayAlerts} = 1 ;
  my $doc1 = $msword->Documents->Add() ;  
  $doc1->Shapes->AddPicture("D:\logo.gif",0,1);

...

The picture doesn't show up in the word doc.
Is this the correct why to insert pictures into Word
using OLE? I saw another Class called InlineShapes.
Should i use that instead?
thanks



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs