如何在excel中保存文本框值。在Windows应用程序中 [英] How save the text box value in excel. In Windows Application

查看:70
本文介绍了如何在excel中保存文本框值。在Windows应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

描述

我在Windows应用程序中有一个表单,假设两个文本框一个用于名称,另一个用于移动号码。我想将它保存到excel表格中(在此Excel表格中,两列名称,MOBILE)。



请帮助...... ... !!!!!!

Description
I have a form in windows application in the fom suppose two text box one for name and another for mobile number. I want to save this into excel sheet(In This Excel Sheet Two Column NAME,MOBILE ).

Pls........Help me......!!!!!!

推荐答案

要创建任何Office文档,您可以使用Open XML SDK:

http://www.microsoft.com/en-us/download/details.aspx?id=30425 [ ^ ]。



这样,您可以支持新的基于XML的Office格式(例如.DOCX,.XLSX),ECMA-376标准:

http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats [ ^ ],

http://en.wikipedia.org/wiki/Office_Open_XML [<一个href =http://en.wikipedia.org/wiki/Office_Open_XMLtarget =_ blanktitle =New Window> ^ ]。



此外,第三方软件支持这些文档。请查看我过去的答案:

将Office文档转换为PDF而不互操作 [ ^ ],
需要一个相当独特的WPF文本编辑器控件 [ ^ ],

您好如何使用c#.net 在Windows应用程序中显示word文件[ ^ ],

阅读没有使用Interop.word dll的word文件...不想在IIS中安装单词。 [ ^ ]。



这是另一种选择: http://npoi.codeplex.com/ [ ^ ]。



-SA
To create any Office documents, you can use Open XML SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

Also, the documents are supported by 3rd-party software. Please see my past answers:
Convert Office-Documents to PDF without interop[^],
Need a rather unique WPF text editor control[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].

This is another option: http://npoi.codeplex.com/[^].

—SA


这篇关于如何在excel中保存文本框值。在Windows应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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