Re: OLE and Crystal Reports

2001-05-09 Thread Jan Dubois
On Wed, 9 May 2001 13:30:02 -0500, "Adam Frielink" <[EMAIL PROTECTED]> wrote: >Issues: I can access the Application Object and the Report Object >underneath it. The OpenReport method executes properly (I am assuming) but >returns the 'Retrying default method a C:\per\site\lib\Win32\OLE\Lite.pm

Re: [ole]Changing Print Quality on Excel

2001-05-09 Thread Jan Dubois
On Wed, 9 May 2001 09:54:06 -0700, Wagner-David <[EMAIL PROTECTED]> wrote: > I am processing several thousand Excel files and converting to PDF. >One of my existing problems is that they have different Print Quality and I >need to set to 400 dpi. Here is a portion of the code: > > $s

re: very basic TK

2001-05-09 Thread bowman
that should be 'very basic Tk'. No kidding -- change use TK; to use Tk; and try it. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Re: IO::Socket help please -- detailed with easy to read code :)

2001-05-09 Thread $Bill Luebkert
Michael Marziani wrote: > > Just a note to start this off, I am aware of the Net::Telnet module but I am > trying to learn more about sockets so I don't want to take the easy road to > solve this problem. > > Ok.. I'm writing a program that telnets to a server, sends some simple (1 > line) comm

RE: very basic TK ?

2001-05-09 Thread Toby Stuart
i think it's use Tk; ^ see the little 'k' > -Original Message- > From: Gregg Martinson [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, May 10, 2001 4:41 AM > To: [EMAIL PROTECTED] > Subject: very basic TK ? > > Hello, > I have been playing with TK today...readin

Re: Writing Unix type Text files terminated with \012 on an NT systemwhich wants \015\012

2001-05-09 Thread $Bill Luebkert
"O'Malley, Bryan T." wrote: > > I read a Unix ascii file with \012 end-of-line terminators with the Perl > script, and I simply want to substute some strings, and write it out to an > NT ascii file keeping the Unix style end-of-line terminators. > > Perl wants to put CarriageReturns \015 in ther

Re: Looking for Finance::Quote for Win32

2001-05-09 Thread $Bill Luebkert
Meegan Goad wrote: > > Hello, > > Was wondering if anyone has come across the module for Finance::Quote in the > Win32 version? Any help is appreciated. I believe it's all Perl, so it shouldn't matter. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / )// // D

RE: very basic TK ?

2001-05-09 Thread Jesse Sookne
Seems like there are two things you can do to correct this: 1) Change the line "use TK;" to "use Tk;" (make the "K" lowercase). 2) Change the line "MainLoop;" to "$mw->MainLoop;". I'm not sure what the differences between TK and Tk are (or why there's two Tk modules), but apparently the Tk modul

Looking for Finance::Quote for Win32

2001-05-09 Thread Meegan Goad
Hello, Was wondering if anyone has come across the module for Finance::Quote in the Win32 version? Any help is appreciated. Thanks Meegan ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-

Re: Re: Numbers in perl

2001-05-09 Thread Mark
Thank you all a lot for the excellent suggestions. I'm really having fun with this language. Except for grapsing the syntax for nestled tables using CGI.pm. But I'm getting there. Cheers. Mark Bergeron -Original Message- From: "Philip Newton"<[EMAIL PROTECTED]> To: "'Toby Stuart'"<[EMA

Re: unable to run a Perl script as a scheduled task

2001-05-09 Thread Henry Potter
The script would be able to run in Task Scheduler if the user belongs to the local administrator group. but doing so would be compromising on the security. Does one need to be in the local administrator group in order to use Task Scheduler? --- Andy Jennings <[EMAIL PROTECTED]> wrote: > Now you

Re: unable to run a Perl script as a scheduled task

2001-05-09 Thread Henry Potter
Thanks for the reply. however I've encountered this problem too when IIS is accessing another Perl script of mine. this is another situation. in the development system "Everyone" has CHANGE access to the system32 folder. once this is changed to just READ, the script will fail to run. what's the p

RE: Numbers in perl

2001-05-09 Thread Ron Hartikka
Well, printf is displaying a rounded version of the number - the number is not disturbed. Displaying the rounded version hides the fact that you are dealing with an approximation - until it is too big to hide. Often, that is long enough. -Original Message- From: [EMAIL PROTECTED] [mailt

Re: Can't get Mail::Sender to work in compiled Perl program

2001-05-09 Thread Jenda Krynicky
> I have a Perl program install.pl. When it hits an error it sends an e-mail > to a selected address. This works perfectly when I run the install.pl. > > I take the install.pl and using the developers kit and create an exe by > running the following: > perlapp install.pl -f > > Now when I run

Re: Numbers in perl

2001-05-09 Thread Philip Newton
Toby Stuart wrote: > return undef if length($n) != 9; #assuming an SSN is > always 9 chars I would s/return undef/return/ here, since return without an argument does "the right thing" regardless of whether the sub was called in scalar or list context. > $n =~ m/^(\d{3})(\d{2})(\d{4}

Re: Numbers in perl

2001-05-09 Thread Philip Newton
$Bill Luebkert wrote: > You could use substr or a pattern match or ??. substr is > probably faster than RE. And unpack possibly clearer. Cheers, Philip -- Philip Newton <[EMAIL PROTECTED]> All opinions are my own, not my employer's. If you're not part of the solution, you're part of the preci

RE: Re: Numbers in perl

2001-05-09 Thread Justin Rogers
my $ssn="123456789"; $ssn =~ s/^(\d{3})(\d{2})(\d{4})$/$1\-$2\-$3/; print $ssn; Justin Rogers [EMAIL PROTECTED] [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:perl-win32- > [EMAIL PROTECTED]] On Behalf Of Mark > Sent: Tuesday, May 08, 2001 04:05 PM > To: Lee Go

Re: Numbers in perl

2001-05-09 Thread Philip Newton
Kevin Plyler wrote: > I have a question kind of along these lines. If I have a > number, "string", that I extract from the dB using DBI and > CGI.pm like 455368900 (ssn) which I am using as a unique > identifier but also need to display on a report. And need to > insert the dashes xxx-xx-

Re: END block needed for abnormal terminations

2001-05-09 Thread Philip Newton
Kevin Plyler wrote: > I need to do some processing when my script trminates. using > the End block works on normal termination, but not when the > task is killed or otherwaise abnormally terminates. Well, that's the point of killing a process, isn't it? To stop it from doing *anything* further?

Re: awk and perl

2001-05-09 Thread Philip Newton
[EMAIL PROTECTED] wrote: > when I try to execute within a script and set the result > to a variable, it doesn' t work. ^ That's a completely useless statement. Does your computer blow up when you try it? Do you get lots of ones and zeroes scrolling down your monito

about ldap_add

2001-05-09 Thread cloud
Hi, I use follow code but got some error, someone can give me a hand? thx the error message is: failed to add entry: Referral: what's the "Referral" means? == use Net::LDAP; $ldap = Net::LDAP->new('123.123.123.123') or die "$@"; $ldap->bin

Re: Numbers in perl

2001-05-09 Thread Jon Bjornstad
Here is one (of many) ways to do it: $ssn = "455368900"; (my $disp = $ssn) =~ s/(...)(..)()/$1-$2-$3/; print $disp; Mark wrote: > > Guys, > I have a question kind of along these lines. If I have a number, "string", that I >extract from the dB using DBI and CGI.pm like 455368900 (ssn) which

Re: Numbers in perl

2001-05-09 Thread $Bill Luebkert
Mark wrote: > > Guys, > I have a question kind of along these lines. If I have a number, "string", that I >extract from the dB using DBI and CGI.pm like 455368900 (ssn) which I am using as a >unique identifier but also need to display on a report. And need to insert the dashes >xxx-xx- to

RE: Re: Numbers in perl

2001-05-09 Thread Toby Stuart
$number = "455368900"; print &str2ssn($number); sub str2ssn { my $n = shift; return undef if length($n) != 9; #assuming an SSN is always 9 chars (less the dashes '-') ... i've no idea ... [t0by] $n =~ m/^(\d{3})(\d{2})(\d{4})$/; return $1 . "-" . $2 . "-" . $3 }

unable to run a Perl script as a scheduled task

2001-05-09 Thread Henry Potter
Hi. I have a Perl script which performs a simple task of getting a webpage and storing it in a file in a folder. I have no problems running this script under my own NT login username. i belong to the local administrator group. the problem arose when i run this script using the windows task schedu