Is there an equivalent ShellExecute() command (like in VB/VC apps) for
opening up Excel files from within ASP.NET web application.
I create an Excel format of a crystal report. I'd like to next open this up
in separate process from ASP.NET web app. 12 3595
Not really. You can potentially write a client VB script that might be able
to execute some such thing but you will need a *lot* of privileges on that
client box to do that.
More over, having an ASP.NET web app do this is not very good idea. You
might want re-consider what you would like to do.
--
Girish Bharadwaj http://msmvps.com/gbvb
"DavidS" <Da****@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com... Is there an equivalent ShellExecute() command (like in VB/VC apps) for opening up Excel files from within ASP.NET web application.
I create an Excel format of a crystal report. I'd like to next open this
up in separate process from ASP.NET web app.
Hi,
I hope someone could tell me what permissions I need to give to the
client box so Client Controls can execute the Shell() Command?
Thanks for your help in advance
Hi,
I hope someone could tell me what permissions I need to give to the
client box so Client Controls can execute the Shell() Command?
Thanks for your help in advance
Do you want to open the Excel file client side or server side ?
Server side you could use the Process class would do it, but this is
generally not recommended.
Client side, just have a link or stream the file to the browser...
Patrice
--
"DavidS" <Da****@discussions.microsoft.com> a écrit dans le message de
news:74**********************************@microsof t.com... Is there an equivalent ShellExecute() command (like in VB/VC apps) for opening up Excel files from within ASP.NET web application.
I create an Excel format of a crystal report. I'd like to next open this
up in separate process from ASP.NET web app.
DavidS wrote: Is there an equivalent ShellExecute() command (like in VB/VC apps) for opening up Excel files from within ASP.NET web application.
I create an Excel format of a crystal report. I'd like to next open this up in separate process from ASP.NET web app.
I'm assuming you want Excel launched on the client computer, right?
Do some web searches for the Office Web Components (OWC).
Eric
Thanks for your reply
The code I have is a client side. I want a separate window to open a
web link e.g. www.microsoft.com.
For more details see my other post.
Thanks for your help.
Not sure who you're replying to, and I certainly don't know where to find
your other post. But if all you want is a link to open in a new window on
the client, use the "target" attribute of the hyperlink. Example:
<a href="http://www.microsoft.com" target="_blank">Click to see
Microsoft.com</a>
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"nyousfi" <ny*****@yahoo-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com... Thanks for your reply
The code I have is a client side. I want a separate window to open a web link e.g. www.microsoft.com.
For more details see my other post.
Thanks for your help.
I'm not after the HTML code as I knew that already. The code I'm
after is deffinately the shell command i.e.
Shell("http://www.yahoo.com") because I'm writing a client control
not a HTML/ASP file.
About my other post, you have already posted a reply to it so you must
have seen it. It goes into a little more detail about my problem but
here's an explanation.
I have a client control that is downloaded to the client when they use
my application, the control is written in VB.NET and it compiles as a
DLL. This control needs certain permissions to execute the Shell
command as it can be quite dangerous and I just need to know how to
set these permissions....
I hope that makes more sense, any help from anyone will be
appreciated.
Thanks
Ah. Understood.
How do you expect to change permissions on the client machine? I think what
you need, if you want to execute anything on the client, is an ActiveX
Control, Java Applet, or some other type of executable on the client.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"nyousfi" <ny*****@yahoo-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com... I'm not after the HTML code as I knew that already. The code I'm after is deffinately the shell command i.e. Shell("http://www.yahoo.com") because I'm writing a client control not a HTML/ASP file.
About my other post, you have already posted a reply to it so you must have seen it. It goes into a little more detail about my problem but here's an explanation.
I have a client control that is downloaded to the client when they use my application, the control is written in VB.NET and it compiles as a DLL. This control needs certain permissions to execute the Shell command as it can be quite dangerous and I just need to know how to set these permissions....
I hope that makes more sense, any help from anyone will be appreciated.
Thanks
I've done research and use COM Interop to faciliate communication.
Basically - I get a permission issue when I run this on the IIS
server.Error: Exception of type System.Web.HttpUnhandledException was thrown.
Access is denied.
sample code...
Dim ExcelObj As New Excel.ApplicationClass() - get permission problem here!
Dim ExcelDoc As Excel.Workbooks
ExcelDoc = ExcelObj.Workbooks
ExcelDoc.Open( _ExcelFile )
ExcelObj.Visible = True
Again - I don't want to have <identify impersonate="true"> in web config
file. Is there a solution
"Eric" wrote: DavidS wrote:
Is there an equivalent ShellExecute() command (like in VB/VC apps) for opening up Excel files from within ASP.NET web application.
I create an Excel format of a crystal report. I'd like to next open this up in separate process from ASP.NET web app.
I'm assuming you want Excel launched on the client computer, right?
Do some web searches for the Office Web Components (OWC).
Eric
> Kevin Spencerwrote:
Ah. Understood. How do you expect to change permissions on the client machine? I
think what you need, if you want to execute anything on the client, is an
ActiveX Control, Java Applet, or some other type of executable on the
client.
I have access to all clients i.e. all the machines on the network so
changing permissions isn't an issue. I just don't know how to change
them, right now I'm only interested in my development machine
Thanks
Hi nyousfi,
I tend to think that you would be better off in that case with an embedded
..Net form, ActiveX control, or similar. Makes extensibility much easier.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"nyousfi" <ny*****@yahoo-dot-com.no-spam.invalid> wrote in message
news:41********@Usenet.com... Kevin Spencerwrote: Ah. Understood. How do you expect to change permissions on the client machine? I
think what you need, if you want to execute anything on the client, is an ActiveX Control, Java Applet, or some other type of executable on the client.
I have access to all clients i.e. all the machines on the network so changing permissions isn't an issue. I just don't know how to change them, right now I'm only interested in my development machine
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John |
last post by:
All:
Is there a way to issue a ShellExecute function in such a way that it
doesn't first draw a DOS window on the screen?
Here is the command line:
ShellExecute( NULL, "open",...
|
by: Wiktor Zychla |
last post by:
I have a problem I cannot solve.
My application hosts IE activex control. I follow the standard procedure: I
just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll
and...
|
by: rgarf |
last post by:
I want to be able to do the following from within my C# application
(int)ShellExecute(NULL,"open","C:\\MyApp.exe",NULL,NULL,SW_SHOWNORMAL);
What in C# replaces the ShellExecute command?
|
by: the_openFace |
last post by:
I'm trying to display the shell's property page for various files and I'm
using this code:
class Win32Shell {
// ... other stuff here
public static extern Int32 ShellExecute(
Int32 hwnd,...
|
by: the openBack |
last post by:
I'm trying to display the shell's property page for various files and I'm
using this code:
class Win32Shell {
// ... other stuff here
public static extern Int32 ShellExecute(
Int32 hwnd,...
| |
by: David |
last post by:
We have an mfc application in which we use ShellExecute
to launch the browser with an initial web site.
{ShellExecute(
NULL, "open", "http://www.SomeWebSite.com", NULL, NULL,
SW_SHOWNORMAL ) } ...
|
by: |
last post by:
Hello Guys,
I am trying to execute a .exe file from a web application
using shell command. But somehow I am not able to make it
work.
The strange thing is when I use the same code and...
|
by: fdmaxey |
last post by:
I currently start a target executable written in VB.Net from an
application that uses a C-script language.
I start the target executable using ShellExecute in the C-script. The
target runs fine...
|
by: magix |
last post by:
Dear Guru,
From Dos Command, I can execute like C:\Converter TextFile.txt or
C:\Converter D:\TextFile.txt
I wrote an application (using VC++) to call a dos command, where
sztxtBuffer1 is the...
|
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,...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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,...
|
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...
|
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...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |