I've slammed into a rather odd thing with a script I wrote. I've a script generating PowerPoint slides from sar data generated on our Unix system we run daily. Recently the script failed to execute on any system with any component of Office 2003 installed: usually Visio but I confirmed the same problem on a default O2k3 installation. My problem is basic Office enumerations like msoFalse were undefined. I finally managed to sort out needing to define

use Win32::Const "Microsoft Office 11.0 Object Library";

instead of the standard

use Win32::Const "Microsoft Office";

Further making things suck, loading 'Microsoft Office' with 2k3 components still loads SOMETHING.. though it's not the complete/desired objects. So I've been stuck with trying something like (pseudocode):

load 'microsoft office'
if ( ! defined(msoFalse) ) { use 'microsoft office 11.0 object library'};

.. which still throws warnings to the console. Is there a more elegant way to do this? Is there a way to show a list of available MS object libs like the OLE Type Library Browser does?

-r

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to