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

Creating a Word doc on the Client Side From a WebApplication

I am actually trying to do this and found in this thread some very good
information (begin quote):
{
In ASP.NET you should store and manipulate the word document on the
server.
You can manipulate it either through the Word object model (which is
not
really supported or encouraged, but does work), or you can save the
document
as XML and manipulate the XML.

Then stream the document down with an appropriate content-type and
content-disposition and the browser will open it in Word.
}
The thread is dated back to 2k3.
I'm new to the vb development world. And I have a few questions:
1. If I edit the XML template on the server to send back to the
client, does the actual content of the XML template on the server
change? or is it just edited in memory and flushed when the session is
over?
2. The data that would be going into the template would be coming from
the web page that they are currently looking at (generated by data from
a dB). How would one get that data into the XML document?
3. How does one then 'stream' that data to the client so that it is a
..doc document that the client will then automatically open?

If anyone has links that will answer these questions, I'd appreciate
it.

Ps. The clients w/ have Office 2k3.

thx.

Nov 21 '05 #1
2 2050
Hi,

http://msdn.microsoft.com/library/de...VBNETtoRTF.asp

Ken
------------------
<no**************@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I am actually trying to do this and found in this thread some very good
information (begin quote):
{
In ASP.NET you should store and manipulate the word document on the
server.
You can manipulate it either through the Word object model (which is
not
really supported or encouraged, but does work), or you can save the
document
as XML and manipulate the XML.

Then stream the document down with an appropriate content-type and
content-disposition and the browser will open it in Word.
}
The thread is dated back to 2k3.
I'm new to the vb development world. And I have a few questions:
1. If I edit the XML template on the server to send back to the
client, does the actual content of the XML template on the server
change? or is it just edited in memory and flushed when the session is
over?
2. The data that would be going into the template would be coming from
the web page that they are currently looking at (generated by data from
a dB). How would one get that data into the XML document?
3. How does one then 'stream' that data to the client so that it is a
..doc document that the client will then automatically open?

If anyone has links that will answer these questions, I'd appreciate
it.

Ps. The clients w/ have Office 2k3.

thx.
Nov 21 '05 #2
Hi,

http://msdn.microsoft.com/library/de...VBNETtoRTF.asp

Ken
------------------
<no**************@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I am actually trying to do this and found in this thread some very good
information (begin quote):
{
In ASP.NET you should store and manipulate the word document on the
server.
You can manipulate it either through the Word object model (which is
not
really supported or encouraged, but does work), or you can save the
document
as XML and manipulate the XML.

Then stream the document down with an appropriate content-type and
content-disposition and the browser will open it in Word.
}
The thread is dated back to 2k3.
I'm new to the vb development world. And I have a few questions:
1. If I edit the XML template on the server to send back to the
client, does the actual content of the XML template on the server
change? or is it just edited in memory and flushed when the session is
over?
2. The data that would be going into the template would be coming from
the web page that they are currently looking at (generated by data from
a dB). How would one get that data into the XML document?
3. How does one then 'stream' that data to the client so that it is a
..doc document that the client will then automatically open?

If anyone has links that will answer these questions, I'd appreciate
it.

Ps. The clients w/ have Office 2k3.

thx.
Nov 21 '05 #3

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

Similar topics

7
by: TomT | last post by:
I have created an ASP App that seems to be working well. I can get the data out of the Access DB and displayed in screen fine. But instead of sending it to the screen, is there any way I can...
7
by: mike | last post by:
Hi, I am having difficulty in creating a thread using pthread_create. It seems that pthread_create does not execute 'program', and returns -1; I have checked the API but I am not sure why this...
12
by: enak | last post by:
I have found some code that shows how to convert an html form to Word. The message said to simply put the following in the Page_load: Response.ContentType = "application/ms-word"...
6
by: Yuri Vanzine | last post by:
In asp we can run VBSCRIPT client-side which allows for 'easy' :?) ms office COM object instantiation. How do I access a Word object in ASP.NET on the client side? I would like to do spell...
2
by: Mike Fellows | last post by:
i have an asp.net application that works great but i now need to create a word document and open it on the client side, so that users can complete the missing data ive looked into this and...
1
by: Franck | last post by:
Hello, I need to implement the following features: I need to create a document on whatever format word, pdf … A simple one; few field taken from a DB. This document should be printed on a client...
10
by: nondisclosure007 | last post by:
I am actually trying to do this and found in this thread some very good information (begin quote): { In ASP.NET you should store and manipulate the word document on the server. You can...
4
by: Kash | last post by:
Hi everybody: I've developed a web application running on a 2003 server not on the web but on extranet environment of a small Firm (less than 10 users). I've taken benefit of Office Primary...
6
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side...
1
by: casicadk | last post by:
On Sep 28, 4:52 am, "Hillbilly" <someb...@somewhere.comwrote: Two words: NO WAY! ;)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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...

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.