Launch E-Views via C#; submit .prg file

For posts that don't quite fit into any of the other forums, including posts about these forums themselves.

Moderators: EViews Gareth, EViews Moderator

roorooroo
Posts: 2
Joined: Wed Apr 25, 2012 10:40 pm

Launch E-Views via C#; submit .prg file

Postby roorooroo » Wed Apr 25, 2012 11:00 pm

Can anyone comment on the following problem:

-- I need to launch E-Views from a C# application

-- After E-Views is open, I need to submit a .prg command file to E-Views via the C# application

The .prg file, which is already prepared and works, asks E-Views to open a .wf1 file, import information from a text file to add an additional observation to the .wf1 file, estimate an ARIMA model, forecast the next observation, write the forecast to a text file, save the .wf1 file and then exit E-Views.

DannyB
Posts: 14
Joined: Sat Dec 19, 2015 10:43 am

Re: Launch E-Views via C#; submit .prg file

Postby DannyB » Tue Dec 22, 2015 8:20 am

Hi,

I'm looking for the same issue, do you find any solutions?

Regards,

DannyB

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Launch E-Views via C#; submit .prg file

Postby EViews Steve » Tue Dec 22, 2015 10:54 am

From C# (or any .NET programming language) you can simply run the EViews executable and pass the path to your PRG file as a parameter, like this:

Code: Select all

"C:\Program Files (x86)\EViews 9\EViews9.exe" "c:\files\my.prg"

This example launches EViews 9 32-bit and automatically runs the specified program.

You can also use our COM Automation interface to instantiate an EViews Application object, then pass a RUN command with the path to your program file. To become familiar with using EViews COM Automation, read this whitepaper from our Downloads page.


Steve


Return to “Any Other Business”

Who is online

Users browsing this forum: No registered users and 2 guests