Arch4ngel
Well-known member
I have a class that is a bridge between Excel Interop and my interface. (See attachment).
What I do... is I read a report with Excel. The first line is Headers and all non-empty line are data.
The server must not keep Excel open. I must close Excel as soon as I have finished using it. Other application on the server might open other instance of Excel (so no process killing maniac please [Broken External Image]:http://www.computerhelp.forum/images/smilies/tongue.gif)
What Ive seen... its that Excel.exe is closed when I call GC.Collect() but its really poor .NET practice to do that... so Im searching a smarter way of doing the same result.
Thank you.
N.B. : The class is in C#. Some comments are in french, sorry. But the code is still understandable.
What I do... is I read a report with Excel. The first line is Headers and all non-empty line are data.
The server must not keep Excel open. I must close Excel as soon as I have finished using it. Other application on the server might open other instance of Excel (so no process killing maniac please [Broken External Image]:http://www.computerhelp.forum/images/smilies/tongue.gif)
What Ive seen... its that Excel.exe is closed when I call GC.Collect() but its really poor .NET practice to do that... so Im searching a smarter way of doing the same result.
Thank you.
N.B. : The class is in C#. Some comments are in french, sorry. But the code is still understandable.