All,
I read the COM documentation and did not find any specs regarding running the prg extension file through the api, is there a way to run it without being a wf1 file? Also, need to pass parameters through the execution, can it be done?
Currently using the Interop.Eviews version 10.
Passing parameter and run prg file in API
Moderators: EViews Gareth, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Passing parameter and run prg file in API
Not entirely sure I understand the question, but you can issue an exec or run command through COM that will instruct EViews to run a .prg.
http://www.eviews.com/help/helpintro.ht ... -exec.html
http://www.eviews.com/help/helpintro.ht ... -exec.html
Follow us on Twitter @IHSEViews
Re: Passing parameter and run prg file in API
EViews Gareth wrote:Not entirely sure I understand the question, but you can issue an exec or run command through COM that will instruct EViews to run a .prg.
http://www.eviews.com/help/helpintro.ht ... -exec.html
I manage to execute the via COM like this:
Code: Select all
var manager = new Manager();
var app = (IApplication10)manager.GetApplication(CreateType.ExistingOrNew, true);
app.Run("exec prgFile");
But the thing is, when i do this it prompts me a screen asking for my database (SQL) user and password and i want to pass this as a parameter in the Run cmd.
Last edited by lgazire on Mon Feb 11, 2019 11:32 am, edited 2 times in total.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Passing parameter and run prg file in API
The run and exec commands allow you to pass arguments and options to the .prg. The .prg could be written such that it uses those arguments or options to populate the fields of your SQL log in, presumably.
Follow us on Twitter @IHSEViews
Re: Passing parameter and run prg file in API
EViews Gareth wrote:The run and exec commands allow you to pass arguments and options to the .prg. The .prg could be written such that it uses those arguments or options to populate the fields of your SQL log in, presumably.
Hmm, nice, i will try to put the log in info in the prg file. Is there a documentation for this?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Return to “Any Other Business”
Who is online
Users browsing this forum: No registered users and 11 guests