473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1711
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*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.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*******@discussions.microsoft.com> wrote in messag
news:DE**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.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:

ProcessStartInfo psi = new ProcessStartInfo("notepad.exe");
psi.WindowStyle = ProcessWindowStyle.Hidden;

Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(MyExited);
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**************@tk2msftngp13.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*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.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
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
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...
1
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...
5
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...
0
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...
35
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...
2
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...
0
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....
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...
0
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...
0
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...

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.