当前位置: 首页 > 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.jsqmd.com/news/11976/

相关文章:

  • 详细介绍:C# WinForms的入门级画板实现
  • 【springboot的分页功能TableDataInfo,有时候需要艰难的分页实现,怎么办呢?】
  • 生成式AI实现多模态信息检索技术突破
  • 在运维工作中,如何过滤某个目录在那边什么路径下面?
  • 完整教程:安卓中,kotlin如何写app界面?
  • 移动固态硬盘插入电脑后提示“应该格式化”或“文件系统损坏”如何修复?
  • PHP 15 个高效开发的小技巧
  • AI元人文构想研究:人类拥抱AI的文明新范式
  • 华为发布星河AI广域网解决方案,四大核心能力支撑确定性网络 - 详解
  • 【汇编】汇编语言运行过程
  • 设计模式与原则精要 - 详解
  • 电感式传感器 - 实践
  • CSP-J/S2024第二轮提高级题目知识构成分析报告
  • 浅层 CNN 的瓶颈:用 LeNet 实测不同数据集
  • lCode题库
  • Arista cEOS 4.35.0F 发布 - 针对云原生环境设计的容器化网络操作系统
  • Arista vEOS 4.35.0F 发布 - 虚拟化的数据中心和云网络可扩展操作系统
  • 因果机器学习的技术发展与挑战
  • 深入解析:Spring依赖注入方式
  • CSP-S 考前集训
  • 通过rqlite sdk 快速访问sqlite-vec
  • CSharp: itextsharp5 imge converter pdf
  • 20251011 总结
  • 上课讲的部分 qoj 题记录
  • var与let
  • CSP-S 第二轮集训资料 **总结 + 专题细分精讲**_from_黄老师
  • AI元人文:迈向正负价值统一的文明架构
  • CSP-S 第二轮集训资料 **总结 + 专题细分精讲**。
  • Ubuntu Linux双网口主机实现在校园网环境下的网络共享
  • 251012