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


GUI front End

2004-10-18 Thread Leroy G. Blimegger Jr.
All,

Over the past few months, I've written several perl scripts that have become very 
useful to my client. But they complain that they have to type in directory names, 
filenames, etc. They would like a GUI interface that allows selection of directories, 
files, etc.

Now, I know I can build a front end in Visual Basic, but I would like to take the 
opportunity to do something new. Can I build a GUI using perl? If so, can someone 
point me to some examples.

If I can't, and I have to use Visual Basic, I know I can pass all of the arguments for 
each perl script via Shell and either command line arguments or switches. But, there 
is quite a bit of useful information that is displayed in the command window when each 
script runs. Can I pass this information back to the Visual Basic front end for 
display?

I'm trying not to ask a specific Visual Basic question on a perl mailing list, but if 
someone has some experience with VB/perl interaction, any tips would be appreciated.

Regards,
Lee


*
The contents of this e-mail and any attachment(s) are strictly confidential and are 
solely for the person(s) at the e-mail address(es) above. 
If you are not an addressee, you may not disclose, distribute, copy or use this 
e-mail, and we request that you send an e-mail to
[EMAIL PROTECTED] and delete this e-mail. CNRGI, Inc. accepts no legal liability for 
the contents of this e-mail including any errors,
interception or interference, as internet communications are not secure. Whilst CNRGI, 
Inc. and the sender have taken every precaution
to prevent transmission of computer viruses, should this inadvertently occur we do not 
accept any liability.
 
CNRGI, Inc. 2017 Loney Street Philadelphia, PA 19152 USA  http://www.cnrgi.com
*





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


Invalid compressed data in zip file

2004-10-18 Thread Jutu Subramanian, Srinivasan (Cognizant)

Hi,
I need to test the following zipfile with the following script for the testing 
purpose.

#
Zip file: filname.zip can be opened. But, the zipped file(file which is inside the 
zip) can not be opened. It shows the Error: Invalid compressed data to inflate.
#
script:
#
my $status = $zip-read( $zippedname );
#Create object to CRCComputingFileHandle
my $fh = CRCComputingFileHandle-new();
#To each member/file of the zip file
foreach my $member ($zip-members())
{
#Method for compression
$member-desiredCompressionMethod(COMPRESSION_STORED);
#Filehandle return to status
$status = $member-extractToFileHandle($fh); #exit the flow.
}
#

If I test the script with the above zip file, The script dies at the place 
extractToFileHandle.
How do I handle this. (Even I tried with the 'eval' also. It is not working)
please let me know answer if anybody know?

regards
Srinivas

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

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


How to use Expect.pm with Net::SSH::Perl

2004-10-18 Thread JAGADISH, ARCHANA (STSD)
Hi all,
  I am new to Perl. I want to write an interactive program using
Net::SSH::Perl. How do I do so. I heard that you can write using
Expect.pm. Please help!!!
Thanks,
Archana

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


FireFox Watch....

2004-10-18 Thread Mulley, Nikhil



Hi All,


I am in a Windows Network 
Environment, and ( I am a Domain Admin if ),I see lot of people in My 
Environment moving to Firefox Browser ( Ofcourse I know that I was the first 
person to install it in my machine and in my network , I use Firefox since it 
was at its 0.7 Version ;) )

I want to have a script that 
watches the Firefox installations on the user side like What are the new plugins 
that have been loaded newly at the userside and what are the componenets that 
have been added to the Firefox,What are the searchplugins that have been 
installed at the user side,
Totally I need a Complete 
Firefox Browser Watcher ( SearchPlugin , Component , Extensions , Theme Watcher 
) , That too to scan remotely

Any Ideas 
,,,

A Quick response would be 
highly appreciated.

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


Re: GUI front End

2004-10-18 Thread $Bill Luebkert
Leroy G. Blimegger Jr. wrote:

 All,
 
 Over the past few months, I've written several perl scripts that have become very 
 useful to my client. But they complain that they have to type in directory names, 
 filenames, etc. They would like a GUI interface that allows selection of 
 directories, files, etc.
 
 Now, I know I can build a front end in Visual Basic, but I would like to take the 
 opportunity to do something new. Can I build a GUI using perl? If so, can someone 
 point me to some examples.
 
 If I can't, and I have to use Visual Basic, I know I can pass all of the arguments 
 for each perl script via Shell and either command line arguments or switches. But, 
 there is quite a bit of useful information that is displayed in the command window 
 when each script runs. Can I pass this information back to the Visual Basic front 
 end for display?
 
 I'm trying not to ask a specific Visual Basic question on a perl mailing list, but 
 if someone has some experience with VB/perl interaction, any tips would be 
 appreciated.

No need to.  Try using Win32::GUI or Tk and create your own
GUI interface.

-- 
  ,-/-  __  _  _ $Bill LuebkertMailto:[EMAIL PROTECTED]
 (_/   /  )// //   DBE CollectiblesMailto:[EMAIL PROTECTED]
  / ) /--  o // //  Castle of Medieval Myth  Magic http://www.todbe.com/
-/-' /___/__/_/_http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: FireFox Watch....

2004-10-18 Thread Mulley, Nikhil



Exactly , I am 
doing it from past 2 days on my machine , but failing on remote 
machines.

And I am not sure 
which version of Firefox is being used by the user,( I do not want to hard code 
the Firefox Version number to search for in the script )
So , being 
Little lazy abt it 

Any way Thanks 
for responding :)

Nikhil.

  -Original Message-From: Dutrieux Yves 
  [mailto:[EMAIL PROTECTED]Sent: Monday, October 18, 2004 3:58 
  PMTo: Mulley, Nikhil; [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: RE: FireFox 
  Watch
  Look belowregistry key 
  HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\ 
  to find the correct folder where Firefox is installed 
  (and the plugins too)
  Andlist all the file in the plugin, directory to 
  know what plugins are installed.
  
  Yves
  
  
  
  De: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] De la part 
  de Mulley, NikhilEnvoyé: lundi 18 octobre 2004 
  12:08À: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Objet: FireFox 
  Watch
  
  Hi All,
  
  
  I am in a Windows Network 
  Environment, and ( I am a Domain Admin if ),I see lot of people in My 
  Environment moving to Firefox Browser ( Ofcourse I know that I was the first 
  person to install it in my machine and in my network , I use Firefox since it 
  was at its 0.7 Version ;) )
  
  I want to have a script that 
  watches the Firefox installations on the user side like What are the new 
  plugins that have been loaded newly at the userside and what are the 
  componenets that have been added to the Firefox,What are the searchplugins 
  that have been installed at the user side,
  Totally I need a Complete 
  Firefox Browser Watcher ( SearchPlugin , Component , Extensions , Theme 
  Watcher ) , That too to scan remotely
  
  Any Ideas 
  ,,,
  
  A Quick response would be 
  highly appreciated.
  
  --Nikhil.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: GUI front End

2004-10-18 Thread Leroy G. Blimegger Jr.
Thanks!

This is what I was hoping for. Can you point me to a good resource for Win32::GUI 
and/or Tk?

Cheers!


*
The contents of this e-mail and any attachment(s) are strictly confidential and are 
solely for the person(s) at the e-mail address(es) above. 
If you are not an addressee, you may not disclose, distribute, copy or use this 
e-mail, and we request that you send an e-mail to
[EMAIL PROTECTED] and delete this e-mail. CNRGI, Inc. accepts no legal liability for 
the contents of this e-mail including any errors,
interception or interference, as internet communications are not secure. Whilst CNRGI, 
Inc. and the sender have taken every precaution
to prevent transmission of computer viruses, should this inadvertently occur we do not 
accept any liability.
 
CNRGI, Inc. 2017 Loney Street Philadelphia, PA 19152 USA  http://www.cnrgi.com
*


-Original Message-
From: $Bill Luebkert [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 18, 2004 6:30 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: GUI front End

Leroy G. Blimegger Jr. wrote:

 All,
 
 Over the past few months, I've written several perl scripts that have become very 
 useful to my client. But they complain that they have to type in directory names, 
 filenames, etc. They would like a GUI interface that allows selection of 
 directories, files, etc.
 
 Now, I know I can build a front end in Visual Basic, but I would like to take the 
 opportunity to do something new. Can I build a GUI using perl? If so, can someone 
 point me to some examples.
 
 If I can't, and I have to use Visual Basic, I know I can pass all of the arguments 
 for each perl script via Shell and either command line arguments or switches. But, 
 there is quite a bit of useful information that is displayed in the command window 
 when each script runs. Can I pass this information back to the Visual Basic front 
 end for display?
 
 I'm trying not to ask a specific Visual Basic question on a perl mailing list, but 
 if someone has some experience with VB/perl interaction, any tips would be 
 appreciated.

No need to.  Try using Win32::GUI or Tk and create your own
GUI interface.

-- 
  ,-/-  __  _  _ $Bill LuebkertMailto:[EMAIL PROTECTED]
 (_/   /  )// //   DBE CollectiblesMailto:[EMAIL PROTECTED]
  / ) /--  o // //  Castle of Medieval Myth  Magic http://www.todbe.com/
-/-' /___/__/_/_http://dbecoll.tripod.com/ (My Perl/Lakers stuff)



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


Windows service account

2004-10-18 Thread David Liouville
Title: Message



Hello,
How can I change 
running account of a windows service in perl for windows NT4/2k/2003 (should 
work with all systems)?



  
  
 
Olix 
David 
  LiouvilleADR : 1bis rue St Louis 35000 
  RennesGSM : 06 70 20 71 53 
  TEL : 02 99 79 78 
  17FAX : 02 99 79 78 17WEB 
  : http://www.olix.fr 
  



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 08/10/2004
 

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


Re: GUI front End

2004-10-18 Thread StoneBeat
You can try Prima (http://prima.eu.org) it have a very very useful Visual 
Builder and you can use in Linux / Windows / Solaris ...

El Lunes 18 Octubre 2004 09:41, Leroy G. Blimegger Jr. escribió:
 All,

 Over the past few months, I've written several perl scripts that have
 become very useful to my client. But they complain that they have to type
 in directory names, filenames, etc. They would like a GUI interface that
 allows selection of directories, files, etc.

 Now, I know I can build a front end in Visual Basic, but I would like to
 take the opportunity to do something new. Can I build a GUI using perl? If
 so, can someone point me to some examples.

 If I can't, and I have to use Visual Basic, I know I can pass all of the
 arguments for each perl script via Shell and either command line arguments
 or switches. But, there is quite a bit of useful information that is
 displayed in the command window when each script runs. Can I pass this
 information back to the Visual Basic front end for display?

 I'm trying not to ask a specific Visual Basic question on a perl mailing
 list, but if someone has some experience with VB/perl interaction, any tips
 would be appreciated.

 Regards,
 Lee


 ***
**
 The contents of this e-mail and any attachment(s) are strictly confidential
 and are solely for the person(s) at the e-mail address(es) above. If you
 are not an addressee, you may not disclose, distribute, copy or use this
 e-mail, and we request that you send an e-mail to [EMAIL PROTECTED] and
 delete this e-mail. CNRGI, Inc. accepts no legal liability for the contents
 of this e-mail including any errors, interception or interference, as
 internet communications are not secure. Whilst CNRGI, Inc. and the sender
 have taken every precaution to prevent transmission of computer viruses,
 should this inadvertently occur we do not accept any liability.

 CNRGI, Inc. 2017 Loney Street Philadelphia, PA 19152 USA 
 http://www.cnrgi.com
 ***
**





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


RE: GUI front End

2004-10-18 Thread Johan Lindstrom
At 12:55 2004-10-18, Leroy G. Blimegger Jr. wrote:
This is what I was hoping for. Can you point me to a good resource for 
Win32::GUI and/or Tk?
Win32::GUI
http://www.bahnhof.se/~johanl/perl/Loft/
Look at the Win32::GUI starter kit section
/J
 --  --- -- --  --  - - --  -
Johan LindströmSourcerer @ Boss Casinos   johanl AT DarSerMan.com
Latest bookmark: TCP Connection Passing
http://tcpcp.sourceforge.net/
dmoz: /Computers/Programming/Languages/JavaScript/ 12
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


data structure question

2004-10-18 Thread Lasher, Brian
If I have an object that has an array as one of its properties...

i.e. $obj-{LIST} = [ 1,2,3,4,5 ];

is there a really good way to push a scalar onto that array in a
subroutine without copying the entire array

sub Subroutine
{  my $self   = shift;
   my $list   = $obj-{LIST};
   my $scalar = 6;

   push $$list, $scalar;


}

above code gives me arg1 must be ARRAY error.

-brian

Brian Lasher
Catalog DSP Product Engineering
Best Practices and Yield Enhancement Team
[EMAIL PROTECTED]
281-274-2913(W)
281-684-4699(C)
713-664-6240(H)
281-274-2279(F)


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

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


RE: data structure question (corrected)

2004-10-18 Thread Lasher, Brian

If I have an object that has an array as one of its properties...

i.e. $obj-{LIST} = [ 1,2,3,4,5 ];

is there a really good way to push a scalar onto that array in a
subroutine without copying the entire array

sub Subroutine
{  my $self   = shift;
   my $list   = $self-{LIST};
   my $scalar = 6;

   push $$list, $scalar;


}

above code gives me arg1 must be ARRAY error.

-brian

Brian Lasher
Catalog DSP Product Engineering
Best Practices and Yield Enhancement Team
[EMAIL PROTECTED]
281-274-2913(W)
281-684-4699(C)
713-664-6240(H)
281-274-2279(F)


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

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

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


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


RE: data structure question (corrected)

2004-10-18 Thread Joseph Discenza
Lasher, Brian wrote, on Monday, October 18, 2004 9:43 AM
:  is there a really good way to push a scalar onto that array in a
:  subroutine without copying the entire array
:  
:  sub Subroutine
:  {  my $self   = shift;
: my $list   = $self-{LIST};
: my $scalar = 6;
:  
: push $$list, $scalar;
:  
:  
:  }
:  
:  above code gives me arg1 must be ARRAY error.

Perhaps you meant push @$list, $scalar;. I believe you can just do this:

push @{$self-{LIST}}, $scalar;

without even having to copy out the reference.

Good luck,

Joe

==
  Joseph P. Discenza, Sr. Programmer/Analyst
   mailto:[EMAIL PROTECTED]
 
  Carleton Inc.   http://www.carletoninc.com
  574.243.6040 ext. 300fax: 574.243.6060
 
Providing Financial Solutions and Compliance for over 30 Years
* Please note that our Area Code has changed to 574! *  



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


RE: FireFox Watch....

2004-10-18 Thread Adam R. Frielink

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Mulley, Nikhil
Sent: Monday, October 18, 2004 5:32 AM

Exactly , I am doing it from past 2 days on my machine , but failing on
remote machines.

And I am not sure which version of Firefox is being used by the user,(
I do not want to hard code the Firefox Version 
number to search for in the script )
So , being Little  lazy abt it 

In the future, please post in Plain Text. :D

Remote machines

If the hash is tied to the virtual root of the registry [or the virtual
root of a remote machine's registry], then we treat hash key strings
which start with the delimiter character specially. 

If the hash key string starts with two delimiters in a row, then those
should be immediately followed by the name of a remote machine whose
registry we wish to connect to. That can be followed by a delimiter and
more subkey names, etc. If the machine name is not following by
anything, then a virtual root for the remote machine's registry is
created, a hash is tied to it, and a reference to that hash it is
returned.
Reading that documentation entry, you should be able to use
Win32::TieRegistry to do what you need.

When referencing the registry, use 2 consequtive delimiters.  I am using
a slash as my delimiter.  

ex.   //REMOTE_COMPUTER/HKEY_LOCAL_MACHINE/SOFTWARE/Mozilla/

Adam

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


people/projects looking for developers...

2004-10-18 Thread bruce
hi...

a question for consideration. are there sites set up for people who have
ideas/projects, who are looking for developers. or vice versa, are there
sites for developers who are looking to be part of projects.

i'm not referring to open source projects, rather projects that are intended
to be revenue generating businesses.

thanks

Bruce Douglas
[EMAIL PROTECTED]


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


RE: people/projects looking for developers...

2004-10-18 Thread bruce
hi...

should have specified... Sweat Equity types of applications/projects.
Guru.com is essentially a site for finding contract people. I'm talking more
along the lines of a group of people getting together and creating
something.

or is that pretty much relegated to the college classroom... which is a dam*
shame, given that as one gets older, your skills should be better at getting
things done!!!

let me know...

peace...

-bruce

-Original Message-
From: John Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 6:39 PM
To: [EMAIL PROTECTED]
Subject: Re: people/projects looking for developers...


  I'm aware of one called guru.com.

John
--- bruce [EMAIL PROTECTED] wrote:

 hi...

 a question for consideration. are there sites set up
 for people who have
 ideas/projects, who are looking for developers. or
 vice versa, are there
 sites for developers who are looking to be part of
 projects.

 i'm not referring to open source projects, rather
 projects that are intended
 to be revenue generating businesses.

 thanks

 Bruce Douglas
 [EMAIL PROTECTED]


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


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


RE: [PHP] people/projects looking for developers...

2004-10-18 Thread bruce
interesting...

for the most part, people have responded with contract resource sites...
(guru.com/elance.com/etc)

no one has mentioned any kind of site specifically geared towards people who
want to come together to kind of build applications. ala the old
garage/basement type of process were you get a few guys together with a few
sales guys, and they build/start to sale the app, and create a biz...

so my question i guess, is why the hell isn't there more of an interest in
this kind of atmosphere..

have people just been too dam* burned too many times, or are people really
just satisfied with their jobs

interesting...

thanks

-bruce


-Original Message-
From: Dan Joseph [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 6:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] people/projects looking for developers...


 a question for consideration. are there sites set up for people who have
 ideas/projects, who are looking for developers. or vice versa, are there
 sites for developers who are looking to be part of projects.

 i'm not referring to open source projects, rather projects that are
intended
 to be revenue generating businesses.

www.itmoonlighter.com is one that I use to use.  It has both companies
looking to find developers for their projects, and developers looking
for extra work.  I'm sure there are other sites, but I can't think of
'em.

-Dan Joseph

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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