xls

How to convert xls file to xlsx file using C#?

白昼怎懂夜的黑 提交于 2019-11-27 07:41:57
问题 I was developing an application which read data from an excel file, but when I try to open it, an exception was thrown if the source file is saved with the xls format (File contains corrupted data error when opening Excel sheet with OpenXML). indeed when I save this file with the xlsx format it works fine. please help me to solve this problem. 回答1: Use Free Spire.XLS dll available via NuGet. Sample: Workbook workbook = new Workbook(); workbook.LoadFromFile("Input.xls"); workbook.SaveToFile(

How can I include svg / png / vml images directly in an xls sheet?

喜欢而已 提交于 2019-11-27 07:23:43
问题 I want to include (if I even can) include directly an svg image into an xls sheet that is written in xml like <Worksheet><Row><Cell></Cell></Row></Worksheet> I want to embed them directly but I don't know how I can do this in xml and what works in excel 2003. Or doesnt it even work with ms excel? I need to show an svg image directly in an excel sheet. 来源: https://stackoverflow.com/questions/7447254/how-can-i-include-svg-png-vml-images-directly-in-an-xls-sheet

Convert Excel document (xls) to a plist

风格不统一 提交于 2019-11-27 05:08:49
问题 I have a pretty straightforward Excel spreadsheet, and I need to use the data in an iPhone app. The xls document has 6 columns, and > 200 rows. I would like to create a plist from the xls document. How can I convert one to the other, programmatically? 回答1: I'm late to the party but I built a desktop utility that will convert CSV to a plist. You can download the binary or use this code, which requires cCSVParse. It uses whatever is in row 0 to create key names, then generates dictionaries for

How to convert Excel XLS to CSV using PHP

一个人想着一个人 提交于 2019-11-27 04:36:34
Can anyone guide me how to convert XLS to CSV using PHP? I have excel spread sheet which contains a list of documents, I want to convert this with CSV format using PHP. Probably you can start reading a XLS using PHP . Then, using the main logic to output what you want (csv in your case). Good luck, This will surely work, require_once 'Classes/PHPExcel/IOFactory.php'; $inputFileType = 'Excel5'; $inputFileName = 'YOUR_EXCEL_FILE_PATH'; $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objPHPExcelReader = $objReader->load($inputFileName); $loadedSheetNames = $objPHPExcelReader-

how to convert xls to xlsx

牧云@^-^@ 提交于 2019-11-27 03:51:32
I have some *.xls(excel 2003) files, and I want to convert those files into xlsx(excel 2007). I use the uno python package, when I save the documents, I can set the Filter name: MS Excel 97 But there is no Filter name like 'MS Excel 2007', please help me, how can set the the filter name to convert xls to xlsx ? Ray I've had to do this before. The main idea is to use the xlrd module to open and parse a xls file and write the content to a xlsx file using the openpyxl module. Here's my code. Attention! It cannot handle complex xls files, you should add you own parsing logic if you are going to

Convert XLS to XLSB Programmatically?

风流意气都作罢 提交于 2019-11-27 02:44:21
问题 I have a customer that needs to convert XLS files to XLSB. Has anyone done this programmatically, (with or without an add-on --- doesn't matter --- just need to be able to automate it)? I'm looking for a way to automate this. As a side note, the customer is asking about this because they use Sharepoint, and it seems it has a way to analyze XLSB files quicker and easier than XLS? I'm working to improve my Sharepoint knowledge, but in the meantime, I'm trying to find an answer to this XLSB

Convert .csv to .xls in Java

放肆的年华 提交于 2019-11-27 02:18:29
问题 Does anyone here know of any quick, clean way to convert csv files to xls or xlsx files in java? I have something to manage csv files already in place and I need the extra compatibility for other programs. Sample code in addition to package names is always well appreciated. Many thanks, Justian Here's my code thus far. I need to remove the returns ("\n") from the lines. Some of my cells contain multiple lines of information (a list), so I can use "\n" in csv to indicate multiple lines within

node读写Excel操作

主宰稳场 提交于 2019-11-27 02:16:03
目支持写Excel的node.js模块: node-xlsx: 基于Node.js解析excel文件数据及生成excel文件; excel-parser: 基于Node.js解析excel文件数据,支持xls及xlsx格式文件; excel-export : 基于Node.js将数据生成导出excel文件,生成文件格式为xlsx; node-xlrd: 基于node.js从excel文件中提取数据,仅支持xls格式文件。 下面通过node-xlsx模块来操作Excel文件。 1 、安装 node-xlsx 模块 每次npm的时候,走国外的镜像,非常的慢,甚至安装失败,可以配置一下 通过改变默认npm镜像代理服务,以下三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候不用重新配置。 通过config命令 npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会有字符串response) 命令行指定 npm --registry https://registry.npm.taobao.org info underscore 编辑 ~/.npmrc 加入下面内容 registry = https://registry.npm.taobao.org

Reading from src/main/resources gives NullPointerException

萝らか妹 提交于 2019-11-27 00:52:26
问题 In my Maven project, I have a xls file in src/main/resources. When I read it like this: InputStream in = new FileInputStream("src/main/resources/WBU_template.xls"); everything is ok. However I want to read it as InputStream with getResourceAsStream. When I do this, with or without the slash I always get a NPE. private static final String TEMPLATEFILE = "/WBU_template.xls"; InputStream in = this.getClass.getResourceAsStream(TEMPLATEFILE); No matter if the slash is there or not, or if I make

Create excel without interop and template with or without row and columnspan

痞子三分冷 提交于 2019-11-26 23:32:26
问题 Which dll or library can be used to create the excelsheet which is not of a particular format such that a template can be used in this context. While the rows and columns may be merged. Number of columns are not fixed. For example: In the first row column 1 and 2 are merged while in the second row the 2 rows of second column are merged. Say first row is containing 5 columns while the second row is of 4 columns. Interop is not desired as the system running the program may not have Microsoft