Page 1 of 1

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

Posted: Wed Apr 25, 2012 11:00 pm
by roorooroo
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.

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

Posted: Tue Dec 22, 2015 8:20 am
by DannyB
Hi,

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

Regards,

DannyB

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

Posted: Tue Dec 22, 2015 10:54 am
by EViews Steve
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