On Tue, 17 Jun 2008, Ben Bullock wrote: > Dear Perl Win32 mailing list users, > > I am looking for the value of msoEncodingUTF8 but can't seem to find > how to pull it in using Win32::OLE::Const. I only found one useful- > looking page on the web, > > http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-users/690195 > > but unfortunately there is a typo or something in that message and the > suggested way doesn't work. > > I also tried using > > use Win32::OLE::Const 'Microsoft Office'; > > since I guess that mso stands for "Microsoft Office", but this doesn't > work either.
You need to be more precise, the string above matches any of the following type libraries: Microsoft Office 10.0 Object Library Microsoft Office 12 Authorization Control 1.0 Type Library Microsoft Office 12.0 Access Database Engine Object Library Microsoft Office 12.0 Object Library Microsoft Office Document Imaging 12.0 Type Library Microsoft Office Euro Converter Object Library Microsoft Office List 12.0 Microsoft Office Outlook View Control Microsoft Office Runtime 1.0 Type Library Microsoft Office Soap Type Library v3.0 Microsoft Office Soap WinInet Connector Type Library (v3.0) Microsoft Office Template and Media Control 1.0 Type Library Microsoft Office Web Discussions Client Type Library And that is just with Office 2007 Standard Edition installed (I think, not sure where the Office 10 Object Library comes from). The following statement should make sure you load the correct library, regardless of the version of Office installed on your machine: use Win32::OLE::Const 'Microsoft Office [0-9.]+ Object Library'; Cheers, -Jan _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs