473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2076
Hi,

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

Ken
------------------
<no************ **@hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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.goo glegroups.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
1961
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 create the report and have it saved / outputted as a PDF or word Doc ? Any links with examples ?? Thanks
7
7843
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 isn't working. #include <stdio.h> #include <pthread.h>
12
4157
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" Response.AddHeader("content-disposition", "inline; filename=BP_CaseStatus.doc") Now all I should have to do is create the page just like I would if I were...
6
5190
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 checking from a web-based wysiwyg editor and I am limited to using ms word from the client, server-side word automation is out of the question for...
2
1445
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 cannot find any tutorials that explain how to open a word document client side (i managed to get it to open server side but that is not what i want) ...
1
1156
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 specified printer (on intranet) and may not be stored. I thought about going on to crystal report but it seems sort of complicated as I start from...
10
354
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 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...
4
2488
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 Interop Assemblies (PIAs) for automating Word on the server and everything runs smoothly on the server console. The word documents are generated perfectly...
6
2395
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 automation. N.B. the environment is a totally enclosed intranet, all the client machines have WinXP, IE6 and Office Pro 2003 with all the latest...
1
900
by: casicadk | last post by:
On Sep 28, 4:52 am, "Hillbilly" <someb...@somewhere.comwrote: Two words: NO WAY! ;)
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6281
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...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
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...
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
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...

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.