XLSX

write.xlsx function not working

折月煮酒 提交于 2019-12-05 02:54:31
问题 I am trying to use .xlsx library but function write.xlsx is returning error that such can not be found. When I am installing library(xlsx) in log I can read: Error : .onLoad nie powiodło się w funkcji 'loadNamespace()' dla pakietu 'rJava', szczegóły: wywołanie: fun(libname, pkgname) błąd: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures. In addition: Warning messages: 1: pakiet ‘xlsx’ został zbudowany w wersji R

how to avoid large numbers from converting to Exponential in nodejs excel file read

一曲冷凌霜 提交于 2019-12-05 02:30:43
问题 I am want to read excel file having phone numbers stored as numbers but when I read the file using SheetJS/js-xlsx (npm install xlsx), All the large phone numbers are converted to strings like 9.19972E+11 919971692474 --> 9.19972E+11 My code is var workbook = XLSX.readFile(req.files.fileName.path); var sheet_name_list = workbook.SheetNames; var csvFile = XLSX.utils.sheet_to_csv(workbook.Sheets[sheet_name_list[0]]); console.log(csvFile2); console output is customer_phone,product_name 9.19972E

how can I read write edit pptx/docx/xlsx files using PHP?

牧云@^-^@ 提交于 2019-12-05 01:28:46
问题 Is there a library extension available for efficiently handling pptx/docx/xlsx files using PHP? As of now I am more interested in PPTX files. Thanks 回答1: As per what i know, those file formats docx,xlsx,pptx are just zip files. they belong to Office Open XML (OOXML) standard. In PHP we have this library for manipulating this type of zip documents: http://php.net/manual/en/book.zip.php You can find all documentation about this ooxml standard here: http://www.ecma-international.org/publications

How do I use Pandas for reading multiple xlsx files and outputting into one in individual file in multiple sheets? [closed]

那年仲夏 提交于 2019-12-04 22:05:49
Closed . This question needs details or clarity . It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post . Closed last year . The .xlsx files are all found in one directory. There is only .xlsx file in this directory. I need to take each of the individual .xlsx files and insert it into a single sheet. The example looks like this: Directory has 4 .xlsx files Read all 4 .xlsx files Put all 4 .xlsx files into one single file Each file should represent one sheet. The final result should be one Excel file with 4 sheets. The

How to read multiple xlsx file in R using loop with specific rows and columns

浪子不回头ぞ 提交于 2019-12-04 18:22:15
I have to read multiple xlsx file with random names into single dataframe. Structure of each file is same. I have to import specific columns only. I tried this: dat <- read.xlsx("FILE.xlsx", sheetIndex=1, sheetName=NULL, startRow=5, endRow=NULL, as.data.frame=TRUE, header=TRUE) But this is for only one file at a time and I couldn't specify my particular columns. I even tried : site=list.files(pattern='[.]xls') but after that loop isn't working. How to do it? Thanks in advance. I would read each sheet to a list: Get file names: f = list.files("./") Read files: dat = lapply(f, function(i){ x =

Read excel xlsx file using simplexlsx in php

孤街浪徒 提交于 2019-12-04 18:18:06
问题 I am using simplexlsx.class.php to read xlsx file type. It's giving problems when the file contain date field in the excel file. Sample output: In the file data: Day Date Thursday 2/2/2012 Friday 2/3/2012 Program output: Day Date Thursday 40941 Friday 40942 It's not give the correct date <?php if (isset($_FILES['file'])) { require_once "simplexlsx.class.php"; $xlsx = new SimpleXLSX( $_FILES['file']['tmp_name'] ); echo '<h1>Parsing Result</h1>'; echo '<table border="1" cellpadding="3" style=

Is openpyxl the fastest package to use to read big xlsx files?

隐身守侯 提交于 2019-12-04 18:11:56
I'm a python beginner but I'm writing a script using openpyxl to read in big xlsx files (60000x187) into Numpy arrays to do some machine learning. My code: from openpyxl import load_workbook import re from numpy import * wb = load_workbook(filename = 'dataSheet.xlsx', use_iterators = True) #dataSheet.xlsx ws1 = wb.get_sheet_by_name(name = 'LogFileData') startCol = 1 #index from 1 startRow = 2 #start at least from 2 because header is in 1st row endCol = ws1.get_highest_column() #index of last used column, from 1 endRow = ws1.get_highest_row() #index of last used row, indexed from 1 diff =

Apache POI xlsx read, cell with # value - error unexpected cell type(5)

允我心安 提交于 2019-12-04 14:59:09
Could you hepl me with such issue. I need to read each cell as String value. In this case I am using appache poi lib. and such method for normilizing each cell: String getNormilizedCell(Cell cell){ return new DataFormatter().formatCellValue(cell);} But when In .xlsx file I faced with such value: |#N/A|#N/A|...|...|... I am getting error [Unexpected Cell type (5)] and I don't know how to handle this. In google I can't find necessary information. rgettman The DataFormatter class only handles CELL_TYPE_FORMULA , CELL_TYPE_NUMERIC , CELL_TYPE_STRING , CELL_TYPE_BOOLEAN , and CELL_TYPE_BLANK . It

java简单的从数据库查询数据使用POI导出excel文件

寵の児 提交于 2019-12-04 14:38:01
个人公众号:Java技术大杂烩,每天10点精美文章准时奉上 使用java简单的从数据库中查询数据,然后写入到excel中,数据的类型为 List<Map<String, Object>>格式的数据。 首先下载POI的jar包,网址: https://poi.apache.org/download.html#POI-3.16-beta2 然后导入jar包到工程下 : 此外还需要 commons-collections4-4.1.jar 和 xmlbeans-2.6.0.jar 两个额外的jar包,因为我使用的是 3.15 版本的,所以 commons-collections4-4.1.jar 需要使用 4.1 版本的,原来使用的是 4.0 ,报错了。 这两个包可以在这里下载: https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans/2.6.0 https://mvnrepository.com/artifact/org.apache.commons/commons-collections4/4.1 导入的类: import org.apache.poi.hssf.util.HSSFColor; import org.apache.poi.ss.usermodel.BorderStyle; import org

Edit XLSX in PHP

好久不见. 提交于 2019-12-04 13:47:31
Hi there is a way to edit uploaded Excel (xlsx) document in PHP. Document is very simple (table with item names, price, quantity). I suppose PHPExcel able only read document but not edit? Any advices? Sarfraz You can use PHPExcel to edit a document as well, check out these threads for more information: Read - Edit - Write Excel File PHPExcel modify existing .xlsx file with multiple worksheet How to open an Excel file with PHPExcel for both reading and writing? OpenTBS can edit XLSX documents using the technique of templates. It is a library pure PHP. By the way, it can also edit DOCX, PPTX,