473,387 Members | 1,771 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,387 software developers and data experts.

Hosting a Word Doc in a Web Form,and saving the results on the server

Hi, I'm looking for a bit of advice. I have word-docs saved in a SQL Server
database on my web-server. I would like to either stream this to a web-form
directly or open it from a temporary file on the server for the client to
edit. Then once the client has finished editing the document, I want the
results to be sent back to the server.

Is this possible? And what would the best method be of achieving this?

Kind Regards,

Paul Louth.
Nov 19 '05 #1
3 1421
Hi Paul,

You must understand that a web server doesn't serve files. It serves COPIES
of files. So, you can't open a file from the web server, edit it on the
client, and then save it back to the server. What you need to do is to give
the client a copy of the file, allow them to edit the copy in Word, and then
upload it to the server. This is tricky, as it will require some client-side
object(s) to achieve. You might want to take a look at how Sharepoint Portal
Server does it. Your solution will have to lie along similar lines.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Paul Louth" <NO****@NO.COM> wrote in message
news:ue****************@TK2MSFTNGP10.phx.gbl...
Hi, I'm looking for a bit of advice. I have word-docs saved in a SQL
Server
database on my web-server. I would like to either stream this to a
web-form
directly or open it from a temporary file on the server for the client to
edit. Then once the client has finished editing the document, I want the
results to be sent back to the server.

Is this possible? And what would the best method be of achieving this?

Kind Regards,

Paul Louth.

Nov 19 '05 #2
Sorry, yes I understand that, just realised my terminology was all over the
place there. Effectively I want the file served to the client, then I want
to watch that file on the client side to find out whether the user saved or
not, and if they did push the file back to the server for storage.

I will look into the Sharepoint Portal Server. Thanks,

Paul

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O0****************@TK2MSFTNGP10.phx.gbl...
Hi Paul,

You must understand that a web server doesn't serve files. It serves COPIES of files. So, you can't open a file from the web server, edit it on the
client, and then save it back to the server. What you need to do is to give the client a copy of the file, allow them to edit the copy in Word, and then upload it to the server. This is tricky, as it will require some client-side object(s) to achieve. You might want to take a look at how Sharepoint Portal Server does it. Your solution will have to lie along similar lines.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

Nov 19 '05 #3
You cant automatically upload a file back to the server, even if you could
monitor if it had been changed. It would breach sandboxing. Also bear in
mind that technically the client and server are disconnected once the word
doc is served.

What Kevin is suggesting for SPS is something to consider, but its likely
that only the enhanced webdav features tied into office 2003 will provide
this feature to an SPS server in the way your probably looking to do it.
From a traditional application standpoint you need to rely on the end user
doing an upload.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Paul Louth" <NO****@NO.COM> wrote in message
news:ek****************@TK2MSFTNGP09.phx.gbl...
Sorry, yes I understand that, just realised my terminology was all over the place there. Effectively I want the file served to the client, then I want to watch that file on the client side to find out whether the user saved or not, and if they did push the file back to the server for storage.

I will look into the Sharepoint Portal Server. Thanks,

Paul

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O0****************@TK2MSFTNGP10.phx.gbl...
Hi Paul,

You must understand that a web server doesn't serve files. It serves

COPIES
of files. So, you can't open a file from the web server, edit it on the
client, and then save it back to the server. What you need to do is to

give
the client a copy of the file, allow them to edit the copy in Word, and

then
upload it to the server. This is tricky, as it will require some

client-side
object(s) to achieve. You might want to take a look at how Sharepoint

Portal
Server does it. Your solution will have to lie along similar lines.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.


Nov 19 '05 #4

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

Similar topics

4
by: Microsoft | last post by:
I'm trying to display a word document inside a web page, but everytime I do I get this error: Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied: 'CreateObject' Does...
6
by: Kevin Ingram | last post by:
Ok, this is probably a silly question but I just keep hitting a brick wall here. I usually develop my sites entirely in ASP and use a database for data storage, works great for me. I also...
5
by: Scott | last post by:
Can anyone refer me to a good hosting provider? I'm looking for a reseller plan with PHP 5, MySql 5, 24 x 7 support, and most importantly, a solid uptime record. Customer referrals only,...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
7
by: Michel Couche | last post by:
Hello, I am working on a project for a potential customer. The project will basically involve an ASP.Net 2.0 application and a database (ideally MS SQL). The customer has already a hosting...
1
by: urstop | last post by:
I am trying to use word automation to generate word document with the results from the client side javascript. So is there any work around to disable the Active X warnign I get on the page? My...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
0
by: codeforestcode | last post by:
Hi Our application (ASP.NET - C#) lets users edit and manage Word (OpenXML) documents that are hosted on the server. I am using Client Side VBScript functions to handle some of the editing...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.