我怎样才能做到这一点...................... [英] how can i do this......................

查看:68
本文介绍了我怎样才能做到这一点......................的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Web应用程序页面,在该页面上有一个文本框"和一个保存按钮" ..
而且我有一个"word文档类区域",为此我有一个文本框" ...


现在我想要的是,当我单击网页上的保存按钮"时,网页文本框中的值应移至word文档文本框中.

请帮一个小例子

感谢



i have a web application page on which i have a "textbox" and a "save button" ..
and i have a "word document like area" for which i have a "textbox"...


now what i want is that when I click on the "save button" on the web page the value from the textbox of web page should moved to the word document textbox.

please help with a small example

thanks

推荐答案

你好

我认为您的确切问题是:如何在C#中创建Word文档"

因此,它可以为您提供帮助:

http://stackoverflow.com/questions/10412/how- can-a-word-document-be-created-in-c [ http://www.techrepublic.com/blog/howdoi/how-do-i-modify-word-documents-using-c/190 [
Hello

I think your exact question is: "How can a Word document be created in C#"

So, it can help you:

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c[^]

If you want to modify Word Document:
http://www.techrepublic.com/blog/howdoi/how-do-i-modify-word-documents-using-c/190[^]


1.处理保存按钮的click事件.下一步将仅在此事件处理程序中进入
2.从第一个文本框中检索内容

string s = textbox1.text;

3.在主文档类型文本框中追加或显示文本.


1. handle the click event for the save button. next steps will in inside this event handler only
2. Retrieve the contents from the first text box

string s = textbox1.text;

3. either append or show the text on the main document type text box.


//to append<br />
textbox2.text += s;<br />
<br />
//to show only that text<br />
textbox2.text = s;


这篇关于我怎样才能做到这一点......................的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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