Aspose

Can Excel interpret a cell as HTML?

社会主义新天地 提交于 2019-11-27 21:10:55
I'm using Aspose.Cells to build an Excel document programmatically. This works great. One of the cells, though, is a block of raw HTML. I'm wondering if it is possible to tell Excel (in any fashion, including the GUI - you don't need to know the Aspose API) to parse and display a cell as HTML. Right now, it just shows up as the raw HTML in text format, tags and all. I know Excel is capable of having HTML pasted into it, but it looks like it just parses it on its own and then Excel-ifies it for you, and it doesn't store the HTML, so it's not actually parsing it and displaying it as HTML. Plus,

C#: How can I open and close an Excel workbook?

蓝咒 提交于 2019-11-27 07:46:11
问题 Does anyone know how to simply open and close an Excel workbook? I don't need to read any data from the file, I just need to open and close it. (*) I'm guessing that I'll need to reference the Microsoft.Office.Interop.Excel assembly. *Reason: I've already configured pivot table information with a 3rd party library (Aspose). Now I need to read the generated pivot table. Unfortunately, the Aspose library can't generate the pivot table at runtime. It needs someone to open the file with Excel so

labview调用 Aspose类库实现Word转PNG

我的梦境 提交于 2019-11-27 07:14:37
Hellow 大家好,今天是开通博客园的第二天,今天分享一篇labview的技术文章,具体内容是通过labview调用.net实现Word文档转png图片。 前些日子在labview技术交流群里面看到有人询问怎么通过labview调用Aspose.words.dll,他用的是labview调用DLL的方法,所以没有调用成功,这里要用到调用.net的方法才能调用成功。首先要网上下载这个类库,找不到的同学可以加我的qq 2083869130。 第二部也是最重要的一步就是要知道Aspose.words.dll这个类库怎么用,我首先是在官方上查文档,但是效果很不理想,因为这个是第三方的不是微软的类库,资料很少(微软的类库查起来还是比较爽的)。那我就网上搜索了一下,发现有很多C#调用这个类库 实现这个功能的,C#我也不懂,但是看它的代码可以发现它其中所调用的类都有哪些(前提是你会一门面向对象的语言,我是会点C++,断断续续学了两年了,还很粗浅)。自己摸索了半天就摸索出来了,就是下图 来源: https://www.cnblogs.com/yerhu/p/11350251.html

How to read PDFs created with an unknown random owner password?

本秂侑毒 提交于 2019-11-27 04:41:42
问题 Requirement is to process a batch of PDF's one at a time and on success encrypt each of them with an user password. However, these PDF's were encrypted previously with randomly generated dynamic owner password (not know to any one) to prevent any edits. I use iText for encryption as shown below: byte[] userPass = "user".getBytes(); byte[] ownerPass = "owner".getBytes(); PdfReader reader = new PdfReader("Misc.pdf"); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("Processed

面对庞大的GIS格式数据怎么办?你与GIS数据管理大师只差一个Aspose.GIS

微笑、不失礼 提交于 2019-11-27 02:21:41
地理空间数据是是空间数据的一种特殊类型。它是指带有地理坐标的数据,包括资源、环境、经济和社会等领域的一切带有地理坐标的数据,是地理实体的空间特征和属性特征的数字描述。 你是否在寻找一款工具能够处理基于矢量的地理空间数据格式访问和处理地理信息?那么,好消息来啦! 用于GIS数据处理的API——Aspose.GIS 重磅上线啦! 使用Aspose.GIS可以从.NET应用程序中读取,编写和转换最流行的GIS文件格式,例如ESRI Shapefile和GeoJSON,而无需任何其他工具或软件。同时该API可以处理几种不同的几何类型,这些类型可以进一步作为“要素”添加到Geo文件中。 Aspose.GIS for .NET( 点击下载 )用于访问和处理地理信息的API Aspose.GIS for .NET 是用于标准ZIP格式的灵活文档压缩和存档操作API。API使.NET应用程序能够实现文件压缩/解压缩,文件存档以及文件夹和存档加密。它通过用户定义的密码和使用ZipCrypto或AES加密(例如AES128、192和AES256)的传统加密来提供保护。 总体特性 Aspose.GIS for .NET功能概述。 支持的文件格式 Aspose.ZIP for .NET 支持流行的GIS文件格式。 平台独立性 Aspose.GIS for .NET在Windows下支持.NET

Can Excel interpret a cell as HTML?

一世执手 提交于 2019-11-26 20:34:05
问题 I'm using Aspose.Cells to build an Excel document programmatically. This works great. One of the cells, though, is a block of raw HTML. I'm wondering if it is possible to tell Excel (in any fashion, including the GUI - you don't need to know the Aspose API) to parse and display a cell as HTML. Right now, it just shows up as the raw HTML in text format, tags and all. I know Excel is capable of having HTML pasted into it, but it looks like it just parses it on its own and then Excel-ifies it

用Aspose.Cells控件读取Excel

人走茶凉 提交于 2019-11-26 17:13:16
Aspose是一个很强大的控件,可以用来操作word,excel,ppt等文件,用这个控件来导入、导出数据非常方便。其中 Aspose.Cells 就是用来操作Excel的,功能有很多。我所用的是最基本的功能,读取Excel的数据并导入到Dataset或数据库中。读取Excel表格数据的代码如下: 首先要引入命名空间: using Aspose.Cells; Workbook workbook = new Workbook(); workbook.Open("C:\\test.xlsx"); Cells cells = workbook.Worksheets[0].Cells; for (int i = 0; i < cells.MaxDataRow + 1; i++) { for (int j = 0; j < cells.MaxDataColumn + 1; j++) { string s = cells[i, j].StringValue.Trim(); //一行行的读取数据,插入数据库的代码也可以在这里写 } } 来源: http://www.cnblogs.com/shenyixin/p/3362911.html

用Aspose.Cells控件读取Excel

与世无争的帅哥 提交于 2019-11-26 17:12:35
Aspose是一个很强大的控件,可以用来操作word,excel,ppt等文件,用这个控件来导入、导出数据非常方便。其中Aspose.Cells就是用来操作Excel的,功能有很多。我所用的是最基本的功能,读取Excel的数据并导入到Dataset或数据库中。读取Excel表格数据的代码如下: 首先要引入命名空间:using Aspose.Cells; Workbook workbook = new Workbook(); workbook.Open("C:\\test.xlsx"); Cells cells = workbook.Worksheets[0].Cells; for (int i = 0; i < cells.MaxDataRow + 1; i++) { for (int j = 0; j < cells.MaxDataColumn + 1; j++) { string s = cells[i, j].StringValue.Trim(); //一行行的读取数据,插入数据库的代码也可以在这里写 } } */ /*--> */ 返回Datatable: Cells cells = workbook.Worksheets[1].Cells; System.Data.DataTable dataTable1 = cells.ExportDataTable(1, 0,

利用Aspose将office转换成HTML、PDF格式

让人想犯罪 __ 提交于 2019-11-26 17:12:27
一、重要转换代码: @Override public void transform(InputStream in, OutputStream out, String fileName) throws IOException { UUID uuid = UUID.randomUUID(); this.cacheFileName = fileName.substring(0, fileName.lastIndexOf(".")) + "-" + uuid; // 设置本地缓存的路径 String tmpPath = localHtmlCachePath + IOUtils.DIR_SEPARATOR + this.cacheFileName + ".pdf"; String lowerFileName = fileName.toLowerCase(); try { if (!new File(tmpPath).exists()) { if (lowerFileName.endsWith(".xls") || lowerFileName.endsWith(".xlsx") || lowerFileName.endsWith(".csv")) { com.aspose.cells.Workbook workbook = new com.aspose.cells.Workbook(in);

完全独立的功能强大创建和管理Excel控件Aspose.Cells​

断了今生、忘了曾经 提交于 2019-11-26 11:33:17
Aspose.Cells 控件包含有一个类库,支持所有Excel格式类型的操作。它是一个非图形表格管理库,可适用于任何类型的应用程序(ASP.NET Web应用程序或Windows桌面应用程序)。此外, 组件 也可以用于如ASP,PHP和Python的一些其他的解决方案等 Aspose.Cells提供了灵活的组件,能够用.NET应用程序来创建和管理,在服务器上安装而不需要Microsoft Excel电子表格。 功能丰富的组件,提供的不仅仅是基本数据的输入和输出。 有了这些组件 软件开发 人员可以导入和导出每一个具体的数据,表格和格式,在各个层面导入图像,应用复杂的计算公式,并将Excel的数据,保存为各种格式等等。 No Microsoft Excel Automation Aspose.Cells允许软件开发人员创建和管理Excel, 而不需要安装Microsoft Excel或者Microsoft Office Excel。 所有Aspose组件是完全独立的,无隶属关系,也没有授权,赞助,或以其他方式的微软公司批准。 总之Aspose.Cells是一个更好的选择 , 自动化 ,安全,稳定,可扩展性延伸,速度快,价格便宜和功能强大。 Aspose.Cells高级功能 不同于其他类似的产品,Aspose.Cells不仅支持新一代的电子表格和其他基本文件格式设置功能