XLSX

Android - docx4j build issue

心不动则不痛 提交于 2019-12-01 06:52:07
I am developing an android application. In which I need to show the docx, xlsx files inside my application. I have searched in the internet and found docx4j will convert docx, xlsx files to html (or) pdf. So that I am planning to show the html return from the docx4j in the webview. So that I have downloaded the source from github and tried to run the sample. I made changes in eclipse.ini file as given in the link as well. But, I couldn't execute the application. When I run the app, I am getting the following exception. [2014-11-24 17:19:34 - AndroidDocxToHtml-master] Conversion to Dalvik

Android - docx4j build issue

北城以北 提交于 2019-12-01 06:06:34
问题 I am developing an android application. In which I need to show the docx, xlsx files inside my application. I have searched in the internet and found docx4j will convert docx, xlsx files to html (or) pdf. So that I am planning to show the html return from the docx4j in the webview. So that I have downloaded the source from github and tried to run the sample. I made changes in eclipse.ini file as given in the link as well. But, I couldn't execute the application. When I run the app, I am

Node.js一次处理10万条数据

偶尔善良 提交于 2019-12-01 05:48:53
电话销售大家一定都经历过,许多公司都有电销的团队,相信看过华尔街之狼的人肯定会理解的更加深刻。我们今天不讨论那些公司是如何通过各种渠道获取到大众的电话号码的。我有幸开发了一个需要处理海量电话号码的系统,这个系统的功能包括: 一次导入10万条Excel数据 对数据进行筛选去重写入数据库 可对复杂查询条件筛选出数据 导出数据到Excel表格 根据条件修改数据的字段 目的是从海量的数据中分配给电销团队电话号码,同时跟踪使用过的电话,包括初次拨打,以及有意愿成交等等,需要记录数据用于考核业绩。 下面我们就介绍一下如何一次性处理10万条数据,写入MySQL。 导入Excel表 我们使用一个npm包来解析Excel import xlsx from 'node-xlsx'; let data = xlsx.parse(file.buffer)[0].data 读取表头 let header = data.shift() //第一行是表头 循环处理数据 for (let record of data) { } 此处省略对数据的预处理。 写入数据库 对于10万条数据来说,如果用普通的insert语句处理,那么处理时间会非常长。这对于客户来说是不能接受的。Oracle有批量insert,但MySQL却没有。那么如何才能快速插入10万条数据呢?还要去重! 关于去重,我们需要建立临时表。

Excel & EPPlus .NET library: Advanced DropDown list validation

倾然丶 夕夏残阳落幕 提交于 2019-12-01 05:30:12
In Epplus, when we create a DropDown list for some cells in excel file, then user put a value which is not part of the list, the cell show a message says: value must match one of the listed items. Instead of this message, Is it possible to prevent the user to put a value which is not part of the drop down list? Thanks in advance, I3i0 I did it with the following code: //ExcelWorksheet ws var validation = ws.DataValidations.AddListValidation(cell.Address); //Error handling validation.ShowErrorMessage = true; validation.ErrorStyle = ExcelDataValidationWarningStyle.stop; validation.ErrorTitle =

Excel & EPPlus .NET library: Advanced DropDown list validation

末鹿安然 提交于 2019-12-01 02:41:57
问题 In Epplus, when we create a DropDown list for some cells in excel file, then user put a value which is not part of the list, the cell show a message says: value must match one of the listed items. Instead of this message, Is it possible to prevent the user to put a value which is not part of the drop down list? Thanks in advance, 回答1: I did it with the following code: //ExcelWorksheet ws var validation = ws.DataValidations.AddListValidation(cell.Address); //Error handling validation

NoClassDefFoundError: javax/xml/stream/XMLStreamException

邮差的信 提交于 2019-12-01 02:00:46
问题 I am getting the following exception while trying to write an .xlsx file using Apache POI NoClassDefFoundError: javax/xml/stream/XMLStreamException Here's the Code Snippet:- XSSFWorkbook wb = new XSSFWorkbook(); Sheet sheet = wb.createSheet(); Row row = sheet.createRow(0); Cell cell = row.createCell(0); cell.setCellValue(100); FileOutputStream fileOut = new FileOutputStream("D:\\workspace\\April\\Excel Test\\workbook.xlsx"); wb.write(fileOut); fileOut.close(); I have the following jars

Converting .XLSX to .XLS in Python with win32com.client module

烂漫一生 提交于 2019-12-01 00:36:48
I am trying to find a way to convert many files from .xlsx to .xls and have been trying Python with the win32com.client module: import win32com.client xl = win32com.client.Dispatch("Excel.Application") wb = xl.Workbooks.Open(r"C:\Users\Kathleen\Desktop\Exp 1_1\A 1-1-1c.xlsx") wb.SaveAs(r"C:\Users\Kathleen\Desktop\Exp 1_1\A 1-1-1c.xls", FileFormat = 56) wb.Close() xl.Quit() I have no error message but the converted file does not show up in the folder I have it set up for. Not sure what I am doing wrong. I have Windows 7, 64 bit and have downloaded: Python 2.7.3 (default, Apr 10 2012, 23:24:47)

Python - Converting XLSX to PDF

假装没事ソ 提交于 2019-11-30 23:08:06
I have always used win32com module in my development server to easily convert from xlsx to pdf : o = win32com.client.Dispatch("Excel.Application") o.Visible = False o.DisplayAlerts = False wb = o.Workbooks.Open("test.xlsx"))) wb.WorkSheets("sheet1").Select() wb.ActiveSheet.ExportAsFixedFormat(0, "test.pdf") o.Quit() However, I have deployed my Django app in production server where I don't have Excel application installed and it raises the following error: File "C:\virtualenvs\structuraldb\lib\site-packages\win32com\client\__init__.p y", line 95, in Dispatch dispatch, userName = dynamic.

How to convert .xlsm (macro enabled excel file) to .xlsx using Python?

放肆的年华 提交于 2019-11-30 22:14:39
I am trying to import data in an .xlsm file as a data frame. When I import the .xlsm file using the command below, it gives me an empty data frames as the result: exp = pd.read_excel(File_Path+'file_name'.xlsx',sheetname='Data',header=None) I have manually saved .xlsm files as .xlsx file and imported them as data frame. Can anybody tell me how to save as .xlsm file as .xlsx using Python? I would suggest you try using a win32com type approach. If you are on Windows, you can use Python to automate Excel itself to carry out the conversion from an .xlxm file to .xlsx format. The file can then be

快递鸟物流单号即时查询api功能之python

孤人 提交于 2019-11-30 18:47:51
之前写快递的时候,官网上只有php和.net的示例,而我使用python封装的相关功能踩了许多坑,才搞出来,分享一下我的方法。 先上图,看结果: 技术文档请参考快递鸟官网api: https://www.kdniao.com/api-track 快递公司编码链接: https://www.kdniao.com/file/2019快递鸟接口支持快递公司编码.xlsx (一)接入流程: 1>. 注册快递鸟账号, API_ID:XXXXXX API_KEY:XXXXXXXXXXXXXXXXXX 2>. 服务申请 在个人中心里面申请需要的服务,即时查询功能有免费的服务 3>.对接服务 ***写自己的业务逻辑***----本文主体 4>.测试代码 5>.正式使用 (二)、接口描述/说明 (1)查询接口支持按照运单号查询(单个查询)。 (2)接口需要指定快递单号的快递公司编码,格式不对或则编码错误都会返失败的信息。 如:EMS物流单号应选择快递公司编码(EMS)查看快递公司编码 (3)返回的物流跟踪信息按照发生的时间升序排列。 (4)接口指令1002。 (5)接口支持的消息接收方式为HTTP POST,请求方法的编码格式(utf-8):“application/x-www-form-urlencoded;charset=utf-8”。 (6)测试地址:http://sandboxapi