in reply to Re^4: How to use win32::OLE with multiple versions of Microsoft Office?
in thread How to use win32::OLE with multiple versions of Microsoft Office?
Perl64 5.14.1 responds with:# print out constants loaded for Microsoft Office use strict; use warnings; use Win32::OLE::Const "Microsoft Office .* Object Library"; my $names = Win32::OLE::Const->Load("Microsoft Office .* Object Librar +y"); printf "Office type library contains %d constants:\n", scalar keys %$n +ames; foreach my $Key (sort keys %$names) { print "$Key = $names->{$Key}\n"; }
(more than 200 lines of similar output suppressed). Apparently there are multiple typelibs in the registry, and only by coding 14.0 do I get the mso constants.C:\winbat>perl -w msoconstants.pl Office type library contains 221 constants: KeepLocal = 0 LogMessages = 0 Replicable = 0 ReplicableBool = 0 V1xNullBehavior = 0 dbAppendOnly = 8 dbAttachExclusive = 65536 dbAttachSavePWD = 131072 dbAttachedODBC = 536870912 dbAttachedTable = 1073741824 dbAttachment = 101
As far as I know, there was only one installtaion of Office 2010 on this machine, but those db constants suggest that Access (a part of Office Pro) might be involved?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to use win32::OLE with multiple versions of Microsoft Office?
by perl_new_b (Novice) on Jul 23, 2014 at 07:12 UTC | |
by Anonymous Monk on Jul 23, 2014 at 07:16 UTC | |
by perl_new_b (Novice) on Jul 23, 2014 at 09:17 UTC | |
by Corion (Patriarch) on Jul 23, 2014 at 09:19 UTC | |
by perl_new_b (Novice) on Jul 23, 2014 at 10:31 UTC | |
|