srivasva has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks , I am trying to work on an Excel which is uploaded on a sharepoint and I have the URL of it. I want to open that xls and save it with different name but I am getting error as : The process cannot access the file because it is being used by another process.
my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); my $Book = $Excel->Workbooks->Open("http://sharepoint/sites/CreditRisk +It/CRRF/Adhoc Business Reports/Daily GN Manual Checks/Gross Net Breac +hes 03 December 2008.xls");
Is there any way I can access xls from "http" location ? Please guide me.

Replies are listed 'Best First'.
Re: Win32::OLE Open xls from http location
by radiantmatrix (Parson) on Dec 04, 2008 at 19:18 UTC

    There are a couple of things to consider. Firstly, Sharepoint could be blocking the request for some reason. Have you tried poking it with something other than a browser (say, LWP)? It could be authentication issues, SharePoint configuration issues, you name it.

    Second, it's possible something else does have that file open and lock: perhaps another copy of Excel, or a previewer of some kind.

    Third, depending on your aims, you may want to consider pulling a copy of the data to your local machine before operating on it.

    Ultimately, I don't think this is a Perl question so much as a general problem you're having.

    <radiant.matrix>
    Ramblings and references
    “A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort.” — Herm Albright
    I haven't found a problem yet that can't be solved by a well-placed trebuchet