I have two PCs, one has MS Office 2013 32bit installed and another MS Office 64bit installed.
I have Perl code that is using Win32::OLE
Perl module to manipulate XLS spreadsheets.
The code is working perfectly fine on 32bit PC, but has a problem on 64bit one.
After doing some research here is what I found out. The problem is the following line of code:
use Win32::OLE::Const 'Microsoft Excel .* Object Library';
I looked inside Win32::OLE::Const
module and it seems that the module is looking for that library in the registry. When I printed out all entries from the registry from both 32 and 64 bit I found out that this library is available on 32bit and not available on 64bit.
Is there a way to install that library on 64 bit? If not, are there any other modules that would allow OLE automation of Excel?
All my Perl script needs to do is to open XLS file and save it as CSV. I am doing it with Spreadsheet::ParseExcel
and Spreadsheet::XLSX
in all other scripts. The problem with this particular XLS file is that it is password protected and using non-standard password encryption. So Spreadsheet::ParseExcel
is not able to open it. Win32::OLE
has no issues opening the file on 32bit.
Code can be provided if needed.
Please advise.
Thank you, -Andrey
.xls
file and dump out the contents properly and SpreadSheet:XLSX (version 0.13) using Win32::OLE (Version 0.1711) to dump the contents of an.XLSX
file and it worked as expected too. – Exhortative