XLSX

SheetJS xlsx-cell styling

亡梦爱人 提交于 2019-12-23 19:29:56
问题 I am referring this example to export a worksheet https://github.com/SheetJS/js-xlsx/issues/817. How to do cell styling like background coloring,font size and increasing the width of the cells to make the data fit exactly.I have gone through the documentation but couldn't find any proper examples to use fill etc.Is there a way to do the formatting? Below is the code snippet: /* make the worksheet */ var ws = XLSX.utils.json_to_sheet(data); /* add to workbook */ var wb = XLSX.utils.book_new();

Build XLSX File With JavaScript

谁都会走 提交于 2019-12-23 18:48:54
问题 I'm trying to build out an XLSX file using JavaScript using some database query results. I have to use JavaScript as the server back end only provides a JavaScript interface to work with (and it doesn't like jQuery). Now, I seem to have uncovered something to actually create the base64 encoded data to write to the file (the server interface provides an API for creating files using base64 encoded strings and defining a file type). XLSX.js looks like it will work well for that purpose, since it

How to read xlsx file in an android application?

半城伤御伤魂 提交于 2019-12-23 18:28:13
问题 I know there's many same questions on stackoverflow, but it seems that I can't see any possible solution for reading the content of xlsx. What I have try: I have try to put the whole Apache POI library to an android application and try to read the xlsx file. However, the problem is that the Apache POI library is too heavy to put into an android application. An error message shows that the Dalvik VM cannot execute an app with more than 65536 methods. It there any way to read the content of the

How to calculate Formulas in Excel with Apache-POI and avoid the “save changes” messagebox?

烂漫一生 提交于 2019-12-23 05:27:07
问题 I've got the following Problem: I wrote a Java programm that writes values into a xlsx file. This xlsx file calculates new values using Formulas. Now I want to get this calculated Values out of the xlsx file. The Problem is, that I don't get the calculated values into my Java programm, because changes aren't saved. So I tryed to edit the xl/workbook.xml in the xlsx file to get rid of that save changes question. That works, but now the formula cells that I try to read return a default value

What .xlsx file format is this?

荒凉一梦 提交于 2019-12-23 03:52:14
问题 Using an existing SSIS package, I was trying to import .xlsx files we received from a client. I received the error message: External table is not in the expected format These files will open in XL When I use XL (currently XL2010) to Save As... the file without making any changes: The new file imports just fine The new file is 330% the size of the original file When changing .xlsx to .zip and investigating the contents with WinZip: The original file only has 4 .xml files and a _rels folder

Node xlsx module get headers of the excel file

随声附和 提交于 2019-12-23 02:51:40
问题 How to get the headers of the given Excel file in node xlsx (https://www.npmjs.com/package/xlsx) module? 回答1: As I could find, there's no exposed method to get headers of the Excel file from the module. So I copied few functions (With all respect to author. https://github.com/SheetJS/js-xlsx) from their source code and make that work with few changes. function getHeaders(sheet){ var header=0, offset = 1; var hdr=[]; var o = {}; if (sheet == null || sheet["!ref"] == null) return []; var range

Import Excel spreadsheet into phpMyAdmin

旧时模样 提交于 2019-12-23 01:45:09
问题 I have been trying to import an excel (xlsx) file into phpMyAdmin. I have tried as both excel and csv file. I have tried csv and csv using load data. I have replaced the default field termination value from ; to , . Most times I was getting an variety of error messages, so I deleted my field names column and then was able to import a single row of data only. The data was off by a column, and I guess that has something to do with the structure of my table, which has a field for ID# as a

reading excel file --> xlsx format with java

自古美人都是妖i 提交于 2019-12-22 14:58:26
问题 I'm trying to read an excel file (xlsx NOT xls) but without any luck. I tried the jexcel api but it doesn't support xlsx extension, then I tried the Apache api which need to work and tried also the example from their web site but with no luck.I can't pass the read file phase and get a filenotfound exception. also used the poi-ooxml-3.6.jar,xmlbeans-2.6.0 and poi-3.7.jar. can anyone please explain to me what types of api/classes/libraries I need to use and how to use it with eclipse (the

Error loading xlsx package

余生颓废 提交于 2019-12-22 10:23:43
问题 yesterday we migrated to windows 7 in our firm and also updated the java packages and also R (to 2.14). Then I tried to load the xlsx package, because I rely heavly on it but i get the following error: Error : .onAttach in attachNamespace() Error: .jnew("org/apache/poi/xssf/usermodel/XSSFWorkbook") I tried the following, but it did not work: Sys.setenv(PATH=paste(Sys.getenv("PATH"),"C:\\Program Files (x86)\\Java\\jre6\\bin\\client",collapse=';')) options(java.parameters = "-Xmx1000m") Since I

Issues using xlsx package to insert data from R to excel

你离开我真会死。 提交于 2019-12-22 06:38:09
问题 I´m trying to create a new excel workbook from R to save a few small datasets using xlsx package. For some reason it was working fine, but i´m unable to do it again. Code to create a new workbook library("xlsx") library("xlsxjars") library("rJava") file <- "marca_imei.xlsx" wb <- loadWorkbook(file) # The error: # Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : # java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream I´ve