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.
Launch E-Views via C#; submit .prg file
Moderators: EViews Gareth, EViews Moderator
Re: Launch E-Views via C#; submit .prg file
Hi,
I'm looking for the same issue, do you find any solutions?
Regards,
DannyB
I'm looking for the same issue, do you find any solutions?
Regards,
DannyB
-
- EViews Developer
- Posts: 799
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Launch E-Views via C#; submit .prg file
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:
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
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 5 guests