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 3 4050
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.ex e" filename.xls)
i belive that opens a excel file.
Chris
"C Williams" <no****@thank.y ou> wrote in message
news:OM******** ******@TK2MSFTN GP15.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
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.ex e" filename.xls) i belive that opens a excel file.
Chris "C Williams" <no****@thank.y ou> wrote in message news:OM******** ******@TK2MSFTN GP15.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
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.Nor malFocus)
' Activate the Calculator application.
AppActivate(Pro cID)
SendKeys.SendWa it("22")
SendKeys.SendWa it("*")
SendKeys.SendWa it("44")
SendKeys.SendWa it("=")
"C Williams" <no****@thank.y ou> wrote in message
news:eS******** ******@TK2MSFTN GP09.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.ex e" filename.xls) i belive that opens a excel file.
Chris "C Williams" <no****@thank.y ou> wrote in message news:OM******** ******@TK2MSFTN GP15.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the process folder where the exe
lies and then this clipper EXE does the data move from the txt file to the
DBF file).
This process works fine on at least 3 PCs (Win 2K Pro and Win XP Pro) -
irrespective of whether I schedule the process or...
|
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 process.
That's strange for me. I understand that it should be a new shell, but why I
can't start it? Is it need to have a Windows application to start an
external process? I created a very long batch files and a complicated
script to work with...
|
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 will be better if an external
program could be triggered.
Any suggestions?
|
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 DLL plug-in for
ArcMap (an ESRI product), so I set the external program to point to its
EXE.
When debugging, it shows the splash screen of the application it's
supposed to start, then bombs with no error message, and the debugging
stops (just...
|
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 problem is that
when I launch this from VS2003, the external program starts only for a
moment and then bails out of memory
with no error, and the ide returns to a stopped state awaiting my
input. If I remove the 2.0 framework, at least the...
| |
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 users finish
to use the external program and close it, under there is still the c#
application that let the user choose other software to start.
Now the problem is that sometimes I lost the focus of the external
application and so it becomes...
|
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 unmanaged code in concert with a managed
application that makes calls to the DLL. This problem has been
cropping up for a while, but the debugger provides very little
information (from what I can tell) as to what exactly is the problem.
|
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 Files\TIES\Proposal.NET\HMSCCURV.exe" C:\1-28903T.TI C:\1-28903T.TO
everything works correctly. When the oProcess.Start() statement from my application shown below executes, I receive an error message stating "The parameter is incorrect":
'...
|
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 rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
Creating library libsq00.lib and object libsq00.exp
libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol
_ldap_unbind@4
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |