Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Reading Excel

by ravi179 (Novice)
on Jan 27, 2017 at 09:13 UTC ( [id://1180452]=note: print w/replies, xml ) Need Help??


in reply to Re: Reading Excel
in thread Reading Excel

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Reading Excel
by poj (Abbot) on Jan 27, 2017 at 09:27 UTC

    Can you open the file in Excel ?. Run this to show the versions you have

    #!perl use strict; use warnings; use Win32::OLE qw(in with); # get already active Excel application or open new my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); print "Perl $] Win32::OLE Version ${Win32::OLE::VERSION}\n"; print "Running Excel $Excel->{'Version'} on $Excel->{'OperatingSystem +'}\n";
    poj

      perl 5.008009 Win32::OLE version 0.1709....Running Excel 15.0 on. I am unable to deal with Excel also..Same error is coming in both the cases.

        If Excel cannot open the file, Perl-using-Excel will not be able to open the file either.

        The lesson here is to check your input data and not make assumptions. If Excel can't open the file how would calling Excel using Perl be any different?

        perl 5.8.9 is rather old, you should try updating your perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found