starting a process in vb.net
Posted on 2012-09-02
In my program, I have declared a process and using it to open an excel file as follows:
proc = Process.Start("C:/myfile.xltm")
On my VB.net form, I have a panel and using it as a container to host my excel application. It works fine when no other excel file is open.
But when some other excel file is already open on my computer, and I try to open myfile.xltm on a button click, myfile.xltm opens in the excel application instead of opening in a panel on vb.net form.
Is there a way to make it mandatory for the process to open the file in Panel only instead of using the open excel application to open this file?
I hope this makes sense.....
Any help will be highly appreciated....