Page 1 of 1

EViews COM automation

Posted: Wed Sep 22, 2010 3:03 am
by jt2010
Has anyone tried out the new EViews COM automation feature. If so, does anyone know if you can instantiate a new Eviews application in a VB.net form? Currently, the code below loads Eviews but in a window outside of the VB.Net form:

Dim mgr As New EViews.Manager
Dim app As EViews.Application
app = mgr.GetApplication(EViews.CreateType.NewInstance)

Thanks for any suggestions.

Re: EViews COM automation

Posted: Wed Sep 22, 2010 7:26 am
by EViews Steve
EViews COM Automation wasn't written to support running as an ActiveX control inside another application. Currently, it will always act as a separate application running concurrently with the client. Perhaps we'll support running as an ActiveX control in the future, but for now we don't.

As a side note, your code sample will result in a hidden EViews. To show it, you'll have to call app.Show().

Steve

Re: EViews COM automation

Posted: Wed Sep 22, 2010 9:59 am
by jt2010
Thanks Steve. Yep, I was aware of the app.Show statement.