实例介绍
C# 简单方便地生成Excel,不需调用Office 组件,可提供: 1.单元格合并、分组、添加字体样式、设置单元格行高、列宽 ...6.添加并设置单元格的下拉列表显示 另外,能够非常方便的在WEB中动态生成Excel并下载
【实例截图】
【核心代码】
.
├── C# 生成Excel 合并、统计、插入图片、WEB下载、设置样式_向Excel写入文件(导出信息到Excel).rar
├── Ionic_Utils_Zip_license.txt
├── NPOI License.txt
├── NPOI.Examples
│ ├── AddHyperlinkInXls
│ │ ├── AddHyperlinkInXls.csproj
│ │ ├── AddHyperlinkInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── AddHyperlinkInXls.exe
│ │ │ ├── AddHyperlinkInXls.pdb
│ │ │ ├── AddHyperlinkInXls.vshost.exe
│ │ │ ├── AddHyperlinkInXls.vshost.exe.manifest
│ │ │ ├── Ionic.Zip.dll
│ │ │ ├── NPOI.dll
│ │ │ └── test.xls
│ │ └── obj
│ │ └── Debug
│ │ ├── AddHyperlinkInXls.csproj.FileListAbsolute.txt
│ │ ├── AddHyperlinkInXls.exe
│ │ ├── AddHyperlinkInXls.pdb
│ │ ├── ResolveAssemblyReference.cache
│ │ └── TempPE
│ ├── ApplyFontInXls
│ │ ├── ApplyFontInXls.csproj
│ │ ├── ApplyFontInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── AutoSizeColumnInXls
│ │ ├── AutoSizeColumnInXls.csproj
│ │ ├── AutoSizeColumnInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── AutoSizeColumnInXls.vshost.exe
│ │ │ └── AutoSizeColumnInXls.vshost.exe.manifest
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ChangeSheetTabColorInXls
│ │ ├── ChangeSheetTabColorInXls.csproj
│ │ ├── ChangeSheetTabColorInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ColorfulMatrixTable
│ │ ├── ColorfulMatrixTable.csproj
│ │ ├── ColorfulMatrixTable.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── ColorfulMatrixTable.vshost.exe
│ │ │ └── ColorfulMatrixTable.vshost.exe.manifest
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ConditionalFormattingInXls
│ │ ├── ConditionalFormattingInXls.csproj
│ │ ├── ConditionalFormattingInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── CreateDropDownListCellInXls
│ │ ├── CreateDropDownListCellInXls.csproj
│ │ ├── CreateDropDownListCellInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── CreateEmptyExcelFile
│ │ ├── CreateEmptyExcelFile.csproj
│ │ ├── CreateEmptyExcelFile.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── CreateHeaderFooterInXls
│ │ ├── CreateHeaderFooterInXls.csproj
│ │ ├── CreateHeaderFooterInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── CreatePOIFSFile
│ │ ├── CreatePOIFSFile.csproj
│ │ ├── CreatePOIFSFile.csproj.vspscc
│ │ ├── CreatePOIFSFile.sln
│ │ ├── CreatePOIFSFile.suo
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── app.config
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── CreatePOIFSFileWithProperties
│ │ ├── CreatePOIFSFileWithProperties.csproj
│ │ ├── CreatePOIFSFileWithProperties.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── app.config
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── DisplayGridlinesInXls
│ │ ├── DisplayGridlinesInXls.csproj
│ │ ├── DisplayGridlinesInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── DrawingInXls
│ │ ├── DrawingInXls.csproj
│ │ ├── DrawingInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ExportXlsToDownload
│ │ ├── App_Data
│ │ ├── Default.aspx
│ │ ├── Default.aspx.cs
│ │ ├── Default.aspx.designer.cs
│ │ ├── ExportXlsToDownload.csproj
│ │ ├── ExportXlsToDownload.csproj.user
│ │ ├── ExportXlsToDownload.csproj.vspscc
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Web.config
│ │ ├── bin
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ExtractStringsFromXls
│ │ ├── App.config
│ │ ├── ExtractStringsFromXls.csproj
│ │ ├── ExtractStringsFromXls.csproj.vspscc
│ │ ├── HSSFTestDataSamples.cs
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── FillBackgroundInXls
│ │ ├── FillBackgroundInXls.csproj
│ │ ├── FillBackgroundInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── GenerateXlsFromXlsTemplate
│ │ ├── GenerateXlsFromXlsTemplate.csproj
│ │ ├── GenerateXlsFromXlsTemplate.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ ├── obj
│ │ │ └── Debug
│ │ │ └── TempPE
│ │ └── template
│ │ └── Book1.xls
│ ├── GroupRowAndColumnInXls
│ │ ├── GroupRowAndColumnInXls.csproj
│ │ ├── GroupRowAndColumnInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── HideColumnAndRowInXls
│ │ ├── HideColumnAndRowInXls.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ImportXlsToDataTable
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── Form1.resx
│ │ ├── ImportXlsToDataTable.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ └── xls
│ │ └── Book1.xls
│ ├── InsertPicturesInXls
│ │ ├── InsertPicturesInXls.csproj
│ │ ├── InsertPicturesInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ ├── image
│ │ │ └── HumpbackWhale.jpg
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── Lib
│ │ ├── Ionic.Zip.dll
│ │ └── NPOI.dll
│ ├── MergeCellsInXls
│ │ ├── MergeCellsInXls.csproj
│ │ ├── MergeCellsInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── MultplicationTableInXls
│ │ ├── MultplicationTableInXls.csproj
│ │ ├── MultplicationTableInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── NPOI.Examples.sln
│ ├── NPOI.Examples.suo
│ ├── NPOI.Examples.vssscc
│ ├── NumberFormatInXls
│ │ ├── NumberFormatInXls.csproj
│ │ ├── NumberFormatInXls.csproj.vspscc
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── RepeatingRowsAndColumns
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RepeatingRowsAndColumns.csproj
│ │ ├── RepeatingRowsAndColumns.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── RotateTextInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── RotateTextInXls.csproj
│ │ ├── RotateTextInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetActiveCellRangeInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetActiveCellRangeInXls.csproj
│ │ ├── SetActiveCellRangeInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetAlignmentInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetAlignmentInXls.csproj
│ │ ├── SetAlignmentInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetBorderStyleInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetBorderStyleInXls.csproj
│ │ ├── SetBorderStyleInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetCellCommentInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetCellCommentInXls.csproj
│ │ ├── SetCellCommentInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetCellValuesInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetCellValuesInXls.csproj
│ │ ├── SetCellValuesInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetDateCellInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetDateCellInXls.csproj
│ │ ├── SetDateCellInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetPrintSettingsInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetPrintSettingsInXls.csproj
│ │ ├── SetPrintSettingsInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SetWidthAndHeightInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SetWidthAndHeightInXls.csproj
│ │ ├── SetWidthAndHeightInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── ShrinkToFitColumnInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ShrinkToFitColumnInXls.csproj
│ │ ├── ShrinkToFitColumnInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── SplitAndFreezePanes
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SplitAndFreezePanes.csproj
│ │ ├── SplitAndFreezePanes.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ ├── UseBasicFormulaInXls
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── UseBasicFormulaInXls.csproj
│ │ ├── UseBasicFormulaInXls.csproj.vspscc
│ │ ├── bin
│ │ │ └── Debug
│ │ └── obj
│ │ └── Debug
│ │ └── TempPE
│ └── ZoomSheet
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── ZoomSheet.csproj
│ ├── ZoomSheet.csproj.vspscc
│ ├── bin
│ │ └── Debug
│ └── obj
│ └── Debug
│ └── TempPE
├── Read Me.txt
├── binary
│ ├── Ionic.Zip.dll
│ └── NPOI.dll
├── release notes.txt
└── 应用实例.rar
267 directories, 198 files
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论