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


OLE with MS word

2004-10-12 Thread just me
hi
I have a MS word doc with an extract of the following
format

Date:current date
Name: Name


I have been using this doc as mail merge from another
file, so the current date and name are dynamic.
Now i want to try and use Perl to make use of
Win32::OLE module to change and insert new values to
replace current date and name.
what are the methods or the correct way to do this
using Win32::OLE?
thanks for any help.




___
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


stopping a running process

2003-08-29 Thread just me
hi

i have a program that executes and generates a log
file and it will stay there collecting logs till user
intervention like Ctrl C. If i wanted to write a perl
script and schedule it to stop the program after a
certain time , how do i do it?? any ways?

thanks



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs