当前位置: 首页 > news >正文

CSharp: Aspose.Cells 8.3.0 web excel Viewer

 

 

GroupDocsXslViewer

GroupDocs.Viewer
Supported formats
Word: DOCX, DOC, ODT, RTF, TXT.
PowerPoint: PPTX, PPT, ODP.
Excel: XLSX, XLS, ODS, Numbers, CSV.
Fixed Page Layout: PDF, XPS.
Graphics: CDR, DCM, AI, PSD.
Email: MSG, EML, VCF.
Diagrams: VSDX, VSD.
Web: HTML, MHTML, CHM, JSON, XML.
Other file formats: E-books, archives, Project
https://products.groupdocs.com/viewer/net/excel/


IronXL is a powerful .NET library that provides a plethora of functionalities related to Excel operations. It offers a simplified API that lets .NET developers write, manipulate, and read Excel documents in various file formats including XLS, XLSX, CSV, and more.

https://github.com/ExcelDataReader/ExcelDataReader
https://github.com/GrapeCity/DsExcel
https://blog.aspose.com/cells/view-excel-files-in-asp-net-mvc-csharp-excel-viewer/

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;namespace HighCharts
{/// <summary>/// /// </summary>public partial class asposecellexcelcoverthtml : System.Web.UI.Page{/// <summary>/// geovindu, Geovin Du,塗聚文,涂聚文/// </summary>/// <param name="sender"></param>/// <param name="e"></param>protected void Page_Load(object sender, EventArgs e){if(!IsPostBack){// The path to the documents directory.string dataDir = Server.MapPath("~") + "/";//Load your source Excel fileAspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(dataDir + "天然气.xlsx");//Define HtmlSaveOptions with various propertiesAspose.Cells.HtmlSaveOptions options = new Aspose.Cells.HtmlSaveOptions();// options.ExportActiveWorksheetOnly = true;// options.ExportImagesAsBase64 = true;// 关键修改:设置为false以导出所有工作表,而不仅仅是活动工作表options.ExportActiveWorksheetOnly = false;options.ExportImagesAsBase64 = true;//options.PicturesCompression = 100;//options.ExportCellAutoFitProperty = true;// options.ExportGridLines = true;// options.ExportHeadings = true;// options.MergedCellsHandling = Aspose.Cells.HtmlMergingCellsHandling.PromoteToParent;//options.CssStyleType = Aspose.Cells.HtmlCssStyleType.Inline;//Save the file in HTML formatworkbook.Save(dataDir + "ExcelToHtml.html", options);//Launch the HTML file in default associated application (web browser)Response.Redirect("ExcelToHtml.html");}}}
}

  

image

 

http://www.rkmt.cn/news/19262.html

相关文章:

  • 【springboot的分页功能TableDataInfo,有时候需要艰难的分页实现,怎么办呢?】
  • PHP 15 个高效开发的小技巧
  • AI元人文构想研究:人类拥抱AI的文明新范式
  • 文本派 - 停服公告 2025
  • Arista vEOS 4.35.0F 发布 - 虚拟化的数据中心和云网络可扩展操作系统
  • 深入解析:Spring依赖注入方式
  • Arista EOS 4.35.0F 发布 - 适用于下一代数据中心和云网络的可扩展操作系统
  • CSharp: itextsharp5 imge converter pdf
  • 20251011 总结
  • 上课讲的部分 qoj 题记录
  • var与let
  • CSP-S 第二轮集训资料 **总结 + 专题细分精讲**_from_黄老师
  • AI元人文:迈向正负价值统一的文明架构
  • CSP-S 第二轮集训资料 **总结 + 专题细分精讲**。
  • 251012
  • C# Avalonia 16- Animation- ExpandElement
  • PVE8.x仅克隆虚拟机配置
  • SQL常用语句分类及示例
  • Electron38-Vue3OS客户端OS系统|vite7+electron38+arco桌面os后台管理
  • 视频拍摄技巧 - 希区柯克变焦/滑动变焦 All In One
  • 记录:git
  • 2025年10月门窗十大品牌最新推荐榜单,十大品牌测评排名与选择指南
  • CF60E Mushroom Gnomes
  • LCPC12E - Johnnys Empire 题解
  • 美国能源部《生成式人工智能参考指南》解读
  • win10系统访问smb服务时提示密码错误
  • 《小说课》读书笔记
  • 鸡哥单人防守爽图7.0通关.
  • AtCoder Beginner Contest 427 ABCDEF 题目解析
  • zju博士资格考试考前复习(微分方程方向)ode 部分