473,799 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling MS Applications from an ASP.NET page

Hello,

I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a SQL Server database and the rest of the information will be used to initiate either a MS Word or MS Excel document. The applications (Word & Excel) reside on the users local system but the database is on the server. Since it is for internal company use I'm not too concerned about security of accessing local applications but ASP.NET still has its restrictions. Is there a good way to accomplish this? I'm using VB.NET with ASP.NET.

Thanks in advance,
Rob
Nov 18 '05 #1
8 1729
A couple of choices present themselves. I'd stick with a webservice chiefly
because it's easier to implement. Remoting is also an option. Both cases
call into components hosted elsewhere. Each has it's advantages. Ballpark
for what you are doing, i'd go with the webservice.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Rob Kellow" <an*******@disc ussions.microso ft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
Hello,

I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a
SQL Server database and the rest of the information will be used to initiate
either a MS Word or MS Excel document. The applications (Word & Excel)
reside on the users local system but the database is on the server. Since
it is for internal company use I'm not too concerned about security of
accessing local applications but ASP.NET still has its restrictions. Is
there a good way to accomplish this? I'm using VB.NET with ASP.NET.
Thanks in advance,
Rob

Nov 18 '05 #2
Thanks for the information and the webservice suggestion. Could you elaborate a little on going with a webservice as the best solution? How would a webservice be used to solve the problem of initiating an application. I'm not that familiar with webservices

Thanks again
Rob

----- Alvin Bruney [MVP] wrote: ----

A couple of choices present themselves. I'd stick with a webservice chiefl
because it's easier to implement. Remoting is also an option. Both case
call into components hosted elsewhere. Each has it's advantages. Ballpar
for what you are doing, i'd go with the webservice

--
Regards
Alvin Bruney [ASP.NET MVP
Got tidbits? Get it here..
http://tinyurl.com/3he3
"Rob Kellow" <an*******@disc ussions.microso ft.com> wrote in messag
news:DE******** *************** ***********@mic rosoft.com..
Hello
I'm working on an application for use within my company on our intrane that will be used to gather some information and store some of the info in
SQL Server database and the rest of the information will be used to initiat
either a MS Word or MS Excel document. The applications (Word & Excel
reside on the users local system but the database is on the server. Sinc
it is for internal company use I'm not too concerned about security o
accessing local applications but ASP.NET still has its restrictions. I
there a good way to accomplish this? I'm using VB.NET with ASP.NET Thanks in advance

Ro


Nov 18 '05 #3
Hi,
I think that, Microsoft Team Service is best solution for your company. With
Microsoft Team Service everyone can share documents (excel, word...) to the
other (of course, if their have permition).
Would luck!

"Rob Kellow" <an*******@disc ussions.microso ft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
Hello,

I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a
SQL Server database and the rest of the information will be used to initiate
either a MS Word or MS Excel document. The applications (Word & Excel)
reside on the users local system but the database is on the server. Since
it is for internal company use I'm not too concerned about security of
accessing local applications but ASP.NET still has its restrictions. Is
there a good way to accomplish this? I'm using VB.NET with ASP.NET.
Thanks in advance,
Rob

Nov 18 '05 #4
>Hi,
I think that, Microsoft Team Service is best solution for your company. WithMicrosoft Team Service everyone can share documents (excel, word...) to the
other (of course, if their have permition).
Would luck!


He doesnt want to know that some other technology does this - he wants to
know how he can do it using the technology he is already using!

Isn't it frustrating when people answer totally different questions than
what was actually asked.

He wants to know how to make an application open on the users machine, via
asp.net. End of story!

Sorry I can't help you Rob. I would be interested on how to do this as well
because Sharepoint Team Services does actually use this to good effect. I
don't know how MS do it though

Simon
Nov 18 '05 #5
Apologies for my last post. I just reread it and it was a bit bitchey.

I was in a bad mood earlier.

Sorry once again

Simon
Nov 18 '05 #6
Hi Hoang,

We have and are using the SharePoint Team services but I'm not sure how that will help to initiate an application from an ASP.NET page. I might need to look into it further but it seemed like the SharePoint Team services was more to "share" documents not create a new document with data gathered from an ASP.NET page.

I'll look into that though and thanks for the information,
Rob
Nov 18 '05 #7
Hi Simon

No need to apologize, half the time I think that I asked the wrong question (and probably do sometimes) but sometimes a reply is an alternative way of doing something. I replied to Hoang that I'm not sure how SharePoint will solve the problem I have of intiating an application from data entered on an ASP.NET page but it might be that I need to look into the SharePoint Team services a little further

Thanks for the feedback and regards
Rob
Nov 18 '05 #8
On the client system, you point your code to a url of webservice which you
will write the code for. When that call executes, the webservice springs
into action to presumably get data from the database. What it does with the
data after that is totally up to you. It really doesn't matter if the client
is running script or not because the webservice is callable from script or a
full blown application running on the client.

you build your webservice as a function call with an attribute [webmethod]
prepended to the function signature. Consider
[WebMethod] string getData(string)
{
//connect to database and get data
return stringdata;
}

your webservice runs on the server with access to the database. the
webservice is callable thru a url. Typically when you want data, from the
client you would make a call into the webservice and get the data back as a
string in this case. inside getData you can spawn word with the data you get
back by calling into the ProcessInfo class, or you can push the data back to
the client. Basically, your webservice is acting like a data delivery tier.
There are a myriad example on the web to building a webservice. Infact,
visual studio has a webservice already built in and commented out. If you
uncomment the code it will work.

I like the webservice example because it forms a tier and it can be called
by any application, which is good for scalability if you decide to expand
this program later on.

you can spawn an application from your webservice using this code:

ProcessStartInf o psi = new ProcessStartInf o("notepad.exe" );
psi.WindowStyle = ProcessWindowSt yle.Hidden;

Process p = new Process();
p.EnableRaising Events = true;
p.Exited += new EventHandler(My Exited);
p.StartInfo = psi;
p.Start();

..... do stuff ...

I hope i've been on track with what you want to do. if not feel free to yell
at me.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:uf******** ******@tk2msftn gp13.phx.gbl...
A couple of choices present themselves. I'd stick with a webservice chiefly because it's easier to implement. Remoting is also an option. Both cases
call into components hosted elsewhere. Each has it's advantages. Ballpark
for what you are doing, i'd go with the webservice.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Rob Kellow" <an*******@disc ussions.microso ft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
Hello,

I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in

a SQL Server database and the rest of the information will be used to initiate either a MS Word or MS Excel document. The applications (Word & Excel)
reside on the users local system but the database is on the server. Since
it is for internal company use I'm not too concerned about security of
accessing local applications but ASP.NET still has its restrictions. Is
there a good way to accomplish this? I'm using VB.NET with ASP.NET.

Thanks in advance,
Rob


Nov 18 '05 #9

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

Similar topics

5
8229
by: bob | last post by:
hello, how could i start a windows application (eg: wordpad, calc, notepad etc...) from a html page? thanks bob
2
3916
by: Mike Brown | last post by:
Hi, Is there anyway to call an executable on a local disk (W2K) with arguments from javascript? Or from any other language for that matter? We are trying to create a simple 'portal' page to a group of our c++ applications via a webbrowser. To open the applications however you must pass them command line options. Thanks for any help anyone can provide!!
1
5795
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try to call the batch file, it just returns with a return code of 1. When I call cmd.exe, and pass the batch file as a parameter it hangs. After much frustration and aggrevation, I found that CMD IS in fact running, but it is running under the context...
5
3443
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
0
1820
by: Rocio | last post by:
Here I go again. Some time ago I wrote a VB.NET web service application that called a COM object written in VB6 using late binding. It was the only way I could call this object (see my posting in http://groups.google.com/groups?q=late+binding&hl=en&lr=&group=microsoft.public.dotnet.framework.webservices.*&selm=7b914006.0406171403.1ac8082c%40posting.google.com&rnum=1). The ws app. compiled, and run with no problems. I wrote a web site...
35
2899
by: Michel Sanner | last post by:
Hello, One of the greatest feature of Python in my opinion is the way the interpreter can be used to integrate a wide variety of software packages by dynamically linking them. This approach has been extremely successful for us so far but now I run into a license nightmare. Some the libraries we wrapped using SWIG are under GPL but the applications we are distributing are not (mainly because
2
1381
by: david.karr | last post by:
Ok, I'm sure that subject is confusing, but I noticed the following curious code on the main page of the "Vitamin" web developer's page <http://www.thinkvitamin.com/>: <script type="text/javascript"> //<!]> </script> The key thing I noticed is that this is defining an inline function, and calling it immediately. This is a very curious technique. I
0
1021
by: pratikkagda | last post by:
Hi, I have created desktop applications in visual basic .net (Framework 2.0) which access the web information from a particular site. This application is working great. There is no problem at all. Now I want to call this exe from web, for that I have set up asp.net application, using the process class of the System.Diagnostics namespace, it is calling exe. Its is also working great when I run this from the ASP.Net Development Server. But...
8
1993
by: Derek Hart | last post by:
I am unclear about what all the requirements are to call a simple vb.net application, installed in the GAC, from COM (such as writing vba in Word to call the dotnet dll). I believe I have installed the dll in the GAC. It is in there and has a public token. I did not create a key-value pair. I believe it is strong named, as it shows up in the GAC. How do I browse the objects of it? I would like to call it late bound, but the errors I...
0
9538
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,...
0
10249
jinu1996
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...
1
10219
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
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...
0
6804
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();...
0
5461
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...
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2937
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.