Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Problem opening WriteExcel generated spreadsheets with OLE

by vassago (Novice)
on Mar 03, 2010 at 21:50 UTC ( [id://826540]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem opening WriteExcel generated spreadsheets with OLE
in thread Problem opening WriteExcel generated spreadsheets with OLE

Well, crap, that works. The weird thing is, with the same exact code in the same folder, it would open one Excel file with the './' path, but not the others. Oh well. Thanks for clearing that up for me!
  • Comment on Re^2: Problem opening WriteExcel generated spreadsheets with OLE

Replies are listed 'Best First'.
Re^3: Problem opening WriteExcel generated spreadsheets with OLE
by furry_marmot (Pilgrim) on Mar 04, 2010 at 17:31 UTC

    Context, young one! Context!

    Internally, on Win32 (<==a context), Perl sees './test.xls', "./test.xls", '.\test.xls', and ".\\test.xls" as the same thing. But if you pass a pathname to something else (oh, say, part of the Windows API known as OLE, another context...), you need to make sure that thing will understand what you mean.

    To the Windows API, OLE, MS-Office, etc and so forth, "./test.xls" has no meaning.

    Capiche?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2026-01-14 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.