惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - 追风逐云.NET

一种新的穿透防火墙的数据传输技术 - 追风逐云.NET - 博客园 [VC++]点对点(P2P)多线程断点续传的实现 Flash MX2004中的XML应用 Microsoft .Net Remoting系列专题之一:.Net Remoting基础篇 Microsoft .Net Remoting系列专题之二:Marshal、Disconnect与生命周期以及跟踪服务 通过Web Services显示和下载文件 用 WebClient.UploadData 方法 上载文件数据 - 追风逐云.NET 创建以Microsoft .NET Remoting为基础的分布式应用架构 最近一直在做C#操作office方面的工作!总结一下!Word(二) 读书笔记c#高级编程 委托和事件 设计了一个用户权限管理模型 C# 逐行驱动打印 C# winform中不规则窗体制作的解决方案(已经解决24位色以上不能正常显示问题) .NET 2.0泛型集合类与.NET 1.1集合类的区别(二) .NET 2.0泛型集合类与.NET 1.1集合类的区别(一) .NET(C#)连接各类数据库-集锦 SQL Server .NET Framework 数据提供程序连接池 防止可淹没应用程序的池溢出 提高ASP.Net应用程序性能的十大方法
最近一直在做C#操作office方面的工作!总结一下!(一)Excel
追风逐云.NET · 2005-09-19 · via 博客园 - 追风逐云.NET

Posted on 2005-09-19 11:18  追风逐云.NET  阅读(1089)  评论(0)    收藏  举报

C#操作Excel!

    public class ImportExportToExcel
    
{
        
private string strConn ;
        
        
private System.Windows.Forms.OpenFileDialog openFileDlg=new System.Windows.Forms.OpenFileDialog();
        
private System.Windows.Forms.SaveFileDialog saveFileDlg=new System.Windows.Forms.SaveFileDialog();      
        
        
public ImportExportToExcel()
        
{
            
//
            
// TODO: 在此处添加构造函数逻辑
            
//
            this.openFileDlg.DefaultExt = "xls";
            
this.openFileDlg.Filter = "Excel文件 (*.xls)|*.xls";

            
this.saveFileDlg.DefaultExt="xls";
            
this.saveFileDlg.Filter= "Excel文件 (*.xls)|*.xls";

        }


        
从Excel文件导入到DataSet

        
从DataSet到出到Excel

        
从XML导入到Dataset

        
从DataSet导出到XML

    
    
    }