473,503 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

start external program

I am using Visual Studio 2003 and trying to use the "Start External
Program" option to start Excel when I run the program. What happens is
that Excel opens and then immediately closes. I know that in the past
it has opened and stayed open, and I am wondering what I have
inadvertently changed and how I can change it back.
Thanks,

-Casey
Nov 21 '05 #1
3 4033
as you stated it in your post when you open excell it should stay open. This
is correct. You are eather closing excel or it is bombing.
are you shelling
shell("excel.exe" filename.xls)
i belive that opens a excel file.

Chris
"C Williams" <no****@thank.you> wrote in message
news:OM**************@TK2MSFTNGP15.phx.gbl...
I am using Visual Studio 2003 and trying to use the "Start External
Program" option to start Excel when I run the program. What happens is
that Excel opens and then immediately closes. I know that in the past it
has opened and stayed open, and I am wondering what I have inadvertently
changed and how I can change it back.
Thanks,

-Casey

Nov 21 '05 #2
No, I am not using "shell"--I am trying to use Visual Studio's Start
External Program feature, which should open up a blank excel file.

Excel works just fine when I open it manually (outside of visual studio)

Chris Calzaretta wrote:
as you stated it in your post when you open excell it should stay open. This
is correct. You are eather closing excel or it is bombing.
are you shelling
shell("excel.exe" filename.xls)
i belive that opens a excel file.

Chris
"C Williams" <no****@thank.you> wrote in message
news:OM**************@TK2MSFTNGP15.phx.gbl...
I am using Visual Studio 2003 and trying to use the "Start External
Program" option to start Excel when I run the program. What happens is
that Excel opens and then immediately closes. I know that in the past it
has opened and stayed open, and I am wondering what I have inadvertently
changed and how I can change it back.
Thanks,

-Casey


Nov 21 '05 #3
I am sorry I have never used that

This is the example in .net for visual basic from the msdn on starting
application exampel
Dim ProcID As Integer
' Start the Calculator application, and store the process id.
ProcID = Shell("CALC.EXE", AppWinStyle.NormalFocus)
' Activate the Calculator application.
AppActivate(ProcID)
SendKeys.SendWait("22")
SendKeys.SendWait("*")
SendKeys.SendWait("44")
SendKeys.SendWait("=")

"C Williams" <no****@thank.you> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
No, I am not using "shell"--I am trying to use Visual Studio's Start
External Program feature, which should open up a blank excel file.

Excel works just fine when I open it manually (outside of visual studio)

Chris Calzaretta wrote:
as you stated it in your post when you open excell it should stay open.
This is correct. You are eather closing excel or it is bombing.
are you shelling
shell("excel.exe" filename.xls)
i belive that opens a excel file.

Chris
"C Williams" <no****@thank.you> wrote in message
news:OM**************@TK2MSFTNGP15.phx.gbl...
I am using Visual Studio 2003 and trying to use the "Start External
Program" option to start Excel when I run the program. What happens is
that Excel opens and then immediately closes. I know that in the past it
has opened and stayed open, and I am wondering what I have inadvertently
changed and how I can change it back.
Thanks,

-Casey



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6093
by: Joseph | last post by:
Hello, I have a C# program that builds a txt file and then, calls an external exe (this external exe simply imports this txt file into a DBF (DBase) file. (we copy a template of the DBF file into...
6
6828
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
4
20109
by: My SQL | last post by:
Hi Can I trigger an external program to run when a new record is added to the mysql table? The external program is in C and instead of scanning the table continuously for new insertions, it...
0
1893
by: LBeveridge | last post by:
Hi, This morning I installed Visual Studio 2005 side-by-side 2003. The first problem I've noted is that projects in 2003 that have "Start External Program" set don't do that. I'm creating a...
2
1743
by: holysmokes99 | last post by:
I am developing a component in .Net 1.1, and want to debug it using the "start external program" of the debugger in the IDE. The program I want to start references both 1.1 and 2.0 components. The...
1
2990
by: cvairetti | last post by:
Hi, I just write an application in C# that show an interface with five button, each button starts an external application that it comes in front of the main C# application with focus on. When the...
0
2913
by: HeroOfSpielburg | last post by:
Hello, I'm new to the realm of .NET application creation, so please forgive my ignorance. I have been tasked with debugging a problem that arises with using a DLL that contains managed and...
0
855
by: mbailey | last post by:
I am new to VB.Net (Visual Studio 2005) and am encountering a problem calling an external exe file with two parameters. If I use the Run dialog box of the Windows Start menu and enter: "C:\Program...
2
2706
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.