-5

I am not a developer but I have to create a small application. The scenario is we have an existing financial application. When the application completes calculation it will pass a few parameters. My C# application needs to read these parameters(financial application output parameters).If the primary application (financial application) doesn't pass the parameter then the C# application ask to input these parameters(input in textboxes). Can anyone help me on how I can read these parameters in my C# windows form application.

DisplayName
  • 3,093
  • 5
  • 35
  • 42
  • 2
    Is that primary (financial) application a console one which returns output data to standard output? Check out https://stackoverflow.com/questions/186822/capturing-console-output-from-a-net-application-c if this is the case. – Dmitry Egorov Jun 08 '17 at 12:44
  • 1
    Possible duplicate of [Capturing console output from a .NET application (C#)](https://stackoverflow.com/questions/186822/capturing-console-output-from-a-net-application-c) – Massimiliano Kraus Jun 08 '17 at 12:53
  • 1
    Why the tags "C#-4.0" and "C#-2.0"? Can you use those versions, but not "C#-3.0"? Seems weird... – Massimiliano Kraus Jun 08 '17 at 12:54

1 Answers1

1

Unless your financial application writes the output to the command line, your C# application cannot pick up these results. The financial app needs to write out the results to a file in some format and your C# can in turn read this file and process them.

UPDATE

Look into calling an application from using Process(). Check this post how to run an application using Process() and getting it's output.

Hope this helps out.

athar13
  • 382
  • 1
  • 8