Ask a Question related to ASP.NET General, Design and Development.
-
mg #1
Run .exe from WebForm
How can I run an .exe (located at the server) from within
a WebForm? For example, run "word.exe mydoc.txt"
mg Guest
-
asp.net how to login to AD from a webform
I have a webserver 2003 and a AD server 2003, I need to create an intranet app and I want the users login to the Webserver using their AD... -
Component in WebForm
Greetings, Is it possible to get a reference to the Page object of an ASP.NET page from within a Component that has been placed on the page? I... -
Help! How to use MSMQ in webForm?
Help!!How to use MSMQ in WebForm? I can not send any Message from MSMQ? -
Including WebForm Image Control in a Webform Table Control
What is the code for including an image control in a Table control of a WebForm ???? regards -
applet in a webform
I have an applet that I instantiate on a web form using an applet tag such as: <Applet> stuff in here </Applet> Assume the name of the applet... -
Ken Cox [Microsoft MVP] #2
Re: Run .exe from WebForm
You can use:
System.Diagnostics.Process.Start("cmd.exe")
But if you are actually intending to use Word, that's not the way. Instead,
you'll want to investigate the Office interop components.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp[/url]
Ken
"mg" <mg@theworld.com> wrote in message
news:011801c35475$af912e20$a301280a@phx.gbl...
How can I run an .exe (located at the server) from within
a WebForm? For example, run "word.exe mydoc.txt"
Ken Cox [Microsoft MVP] Guest
-
mg #3
Re: Run .exe from WebForm
I ran
private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("cmd.exe");
}
and
private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("c:\\Program
Files\\Microsoft Office\\Office\\WinWord.exe");
}
but nothing happened.
???
the way. Instead,>-----Original Message-----
>You can use:
>
>System.Diagnostics.Process.Start("cmd.exe")
>
>But if you are actually intending to use Word, that's noturl=/library/en->you'll want to investigate the Office interop components.
>
>[url]http://msdn.microsoft.com/library/default.asp?[/url]
us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp>
>Ken
>
>"mg" <mg@theworld.com> wrote in message
>news:011801c35475$af912e20$a301280a@phx.gbl...
>How can I run an .exe (located at the server) from within
>a WebForm? For example, run "word.exe mydoc.txt"
>
>
>.
>mg Guest
-
Ken Cox [Microsoft MVP] #4
Re: Run .exe from WebForm
What did you want to happen? The Web service doesn't have a way to show you
the desktop so there's nothing to see.
"mg" <mg@theworld.com> wrote in message
news:072001c3550a$0d623640$a401280a@phx.gbl...
I ran
private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("cmd.exe");
}
and
private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("c:\\Program
Files\\Microsoft Office\\Office\\WinWord.exe");
}
but nothing happened.
???
the way. Instead,>-----Original Message-----
>You can use:
>
>System.Diagnostics.Process.Start("cmd.exe")
>
>But if you are actually intending to use Word, that's noturl=/library/en->you'll want to investigate the Office interop components.
>
>[url]http://msdn.microsoft.com/library/default.asp?[/url]
us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp>
>Ken
>
>"mg" <mg@theworld.com> wrote in message
>news:011801c35475$af912e20$a301280a@phx.gbl...
>How can I run an .exe (located at the server) from within
>a WebForm? For example, run "word.exe mydoc.txt"
>
>
>.
>
Ken Cox [Microsoft MVP] Guest
-
mg #5
Re: Run .exe from WebForm
If possible, I'd like to open a program like notepad
programatically ... Ideally on the client (where the
WebForm is running in a browser), or at the server (where
IIS is running) ?
have a way to show you>-----Original Message-----
>What did you want to happen? The Web service doesn't>the desktop so there's nothing to see.
>
>"mg" <mg@theworld.com> wrote in message
>news:072001c3550a$0d623640$a401280a@phx.gbl...
>I ran
>
>private void Page_Load(object sender, System.EventArgs e)
>{
>System.Diagnostics.Process.Start("cmd.exe");
>}
>
>and
>
>private void Page_Load(object sender, System.EventArgs e)
>{
>System.Diagnostics.Process.Start("c:\\Program
>Files\\Microsoft Office\\Office\\WinWord.exe");
>}
>
>but nothing happened.
>
>???
>
>
>>the way. Instead,>>-----Original Message-----
>>You can use:
>>
>>System.Diagnostics.Process.Start("cmd.exe")
>>
>>But if you are actually intending to use Word, that's not>url=/library/en->>you'll want to investigate the Office interop components.
>>
>>[url]http://msdn.microsoft.com/library/default.asp?[/url]
>us/dv_wrcore/html/wrrefofficeprimaryinteropassemblies.asp>>>
>>Ken
>>
>>"mg" <mg@theworld.com> wrote in message
>>news:011801c35475$af912e20$a301280a@phx.gbl...
>>How can I run an .exe (located at the server) from within
>>a WebForm? For example, run "word.exe mydoc.txt"
>>
>>
>>.
>>
>
>.
>mg Guest



Reply With Quote

