从WebApplication在客户端创建Word文档 [英] Creating a Word doc on the Client Side From a WebApplication

查看:61
本文介绍了从WebApplication在客户端创建Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上是在尝试这样做,并在这个帖子中找到了一些非常好的

信息(开始引用):

{

In ASP.NET应该存储和操作

服务器上的word文档。

你可以通过Word对象模型操作它(这是

不是

真的支持或鼓励,但确实有效),或者你可以将

文件作为XML保存并操纵XML。


然后使用适当的内容类型和

内容处理流式传输文档,浏览器将在Word中打开它。

}

该帖子的日期可以追溯到2k3。

我是vb开发世界的新手。我有几个问题:

1.如果我在服务器上编辑XML模板以发送回

客户端,那么XML模板的实际内容是否在服务器

改变?或者只是在内存中进行编辑并在会话结束时刷新?
结束?

2.将进入模板的数据将来自

他们当前正在查看的网页(由

a dB的数据生成)。如何将这些数据导入XML文档?

3.如何将这些数据流式传输到客户端,以便它是一个

..客户端将自动打开的doc文档?


如果有人有链接可以回答这些问题,我会很感激

它。


Ps。客户端有办公室2k3。


thx。

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.

推荐答案



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


Ken

------------------

< no ************** @ hotmail.com>在留言中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ......

我实际上是想这样做,在这个帖子中发现一些非常好的

信息(开始引用):

{

在ASP.NET中,你应该在

服务器上存储和操作word文档。

你可以通过Word对象模型操作它(这是

不是

真的支持或鼓励,但确实有效),或者你可以将

文件保存为XML并操纵XML 。


然后使用适当的内容类型和

内容处理流式传输文档,浏览器将在Word中打开它。

}

该帖子的日期可以追溯到2k3。

我是vb开发世界的新手。我有几个问题:

1.如果我在服务器上编辑XML模板以发送回

客户端,那么XML模板的实际内容是否在服务器

改变?或者只是在内存中进行编辑并在会话结束时刷新?
结束?

2.将进入模板的数据将来自

他们当前正在查看的网页(由

a dB的数据生成)。如何将这些数据导入XML文档?

3.如何将这些数据流式传输到客户端,以便它是一个

..客户端将自动打开的doc文档?


如果有人有链接可以回答这些问题,我会很感激

它。


Ps。客户有办公室2k3。


thx。
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.




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


Ken

---------- --------

< no ************** @ hotmail.com>在留言中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ......

我实际上是想这样做,在这个帖子中发现一些非常好的

信息(开始引用):

{

在ASP.NET中,你应该在

服务器上存储和操作word文档。

你可以通过Word对象模型操作它(这是

不是

真的支持或鼓励,但确实有效),或者你可以将

文件保存为XML并操纵XML 。


然后使用适当的内容类型和

内容处理流式传输文档,浏览器将在Word中打开它。

}

该帖子的日期可以追溯到2k3。

我是vb开发世界的新手。我有几个问题:

1.如果我在服务器上编辑XML模板以发送回

客户端,那么XML模板的实际内容是否在服务器

改变?或者只是在内存中进行编辑并在会话结束时刷新?
结束?

2.将进入模板的数据将来自

他们当前正在查看的网页(由

a dB的数据生成)。如何将这些数据导入XML文档?

3.如何将这些数据流式传输到客户端,以便它是一个

..客户端将自动打开的doc文档?


如果有人有链接可以回答这些问题,我会很感激

它。


Ps。客户有办公室2k3。


thx。
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.


这篇关于从WebApplication在客户端创建Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆