By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,532 Members | 1,527 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,532 IT Pros & Developers. It's quick & easy.

MSScriptControl objects

P: n/a
Hello all. Newcommer to the newsgroups so please let me know if Im not
adhering to any policy.

Ive setup an app (.NET app) which is using the MSScriptControl. I have the
ActivePython package installed and the ActiveScript engine for Python
registered. Thats all peachykeen.

Im running into a problem whereby Objects that Ive extended to the script
arent being 'seen' correctly by the engine. Other languages such as
VBScript, JScript and RubyScript are dealing with and using the objects just
fine. The following is an error that the pyscript engine returned upon using
an object ive named 'Graphics'. The following error occurs when I try to use
the methods, properties or subclasses of any object extended to the script
via MSScriptControl.AddObject.

Error Number : -2147352567

Description : Traceback (most recent call last):
File "<Script Block >", line 22, in Widget_Activate
File "<Script Block >", line 36, in Widget_Paint
line 146, in __getattr__
return self._scriptItem_.subItems[string.lower(attr)].attributeObject
AttributeError: 'NoneType' object has no attribute 'subItems'
Line 145 Column -1

I would greatly appreciate any feedback on this, and how to get objects
extended to the scripts working in python.


Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.