Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I need a code to invoke default installed MS word, Excel, Powerpoint on an event(like button click ) and my data should be displayed in it from the database and edit and save the changes on it.
Posted

1 solution

If this is genuinely ASP.NET and VB.NET, then you basically can't, except in very, very limited circumstances.
The problem is that you can't run applications from Javascript code for security reasons, and if you run it from your C# / VB code then the applications would open at the server, not the client, so the user would never see them. So the changes would never be made, and the database would never be updated. It would probably seem to be working in development, where the client and the server are the same computer, but would fail massively in production.

If this isn't web based, but winforms, then its relatively simple - sort of - to do.
 
Share this answer
 
Comments
[no name] 16-Apr-14 4:12am    
Thanks, but even if it is in server and the client, is there any possibility of invoking the editor from the client machine and just save the content in to the DB?
OriginalGriff 16-Apr-14 4:30am    
Not under normal circumstances, no - the server can't cause an app to run on the client, and the client shouldn't (very definitely shouldn't!) have access directly to the database. And Word won't save to a database anyway!

You can do it if the client is running your client software instead of the browser - that's fairly trivial - but you won't find many people who will voluntarily install and run such an app!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900