xls

Making new colors in JExcelApi

谁都会走 提交于 2019-12-10 02:56:30
问题 I'm using JExcelApi for generating XLS files. From jxl.format.Colour, I see how to get any of the colors in the "standard Excel colour palette", but not how to create a new color (say, given its RGB). But in Excel itself, I can pick any color at all. Am I just missing it? Is there a way in JExcelApi to select an arbitrary color? I'm using a simple find-the-closest-standard-color method right now, which is OK but not great. 回答1: Excel versions before 2007 have a standard palette, and given

Python- creating pdf from xls with some modifications

时间秒杀一切 提交于 2019-12-09 22:50:20
问题 I am trying to write app in Python which will allow to convert xls file to pdf. The xls file has 3 columns: Index, PLN price and EUR price(prices are constant). What I want, is to generate printable pdf label with all this info for each index- big bolded index and below it prices. So basically the label should have big index, and these two prices, in other words one row should be one pdf page in exact size. And it also needs to have simple gui- just 2 buttons, upload file and generate. For

Libreoffice converting html to xls or xlsx

隐身守侯 提交于 2019-12-09 18:34:10
问题 I am trying to use Libreoffice to convert a HTML file to XLS or XLSX format. With LibreOffice 4.0.4.2 running on CentOS release 6.5 (Final) I was able to convert simple html to Microsoft XLS with the following command. soffice --headless --convert-to xls my_file.html I've been testing on the latest LibreOffice 5.0.4.2 without success. I'm using the following command and including the filter: libreoffice5.0 --headless --convert-to xls:"MS Excel 97" test.html It returns the following. convert

Spreadsheet_Excel_Writer data output is damaged

爷,独闯天下 提交于 2019-12-09 16:22:21
问题 I use Spreadsheet_Excel_Writer to generate .xls file and it works fine until I have to deal with a large amount of data. On certain stage it just writes some nonsense chars and quits filling certain columns. However some columns are field up to the end (generally numeric data) I'm not quite sure how the xls document is formed: row by row, or col by col... Also it is obviously not an error in a string, because when i cut out some data, the error appears a little bit further. I think there is

How can i read .xls files (Excel) with PHP?

我的梦境 提交于 2019-12-09 15:12:25
问题 I need to convert an .xls file to text, i dont need it formatted in any way. The file is filled with productids like PN-5098P, which i will preg_match_all to get. What is the simplest solution? I tried simply opening the file in a regular texteditor, the ids are not showing, so i guess i need some kind of binary converter? 回答1: XLS is a complex proprietary format, and it might be difficult to work with. If you end up having trouble with libraries like Clint suggested, consider only accepting

NPOI DataFormat

你。 提交于 2019-12-09 11:45:58
问题 I'm exporting a grid with NPOI v1.2.3, and am having trouble getting cell formatting to work. I have a class that exports a list of objects to an XLS file. A row is created for each object, and a cell is added for each configured property. The cell data format can be set on a per-property level. I've read that you shouldn't create a new style for each cell. I can't hard-code my styles, since my exporter needs to support any class. Instead, I wrote a little cache system that only creates a new

Which library should I use to write an XLS from Linux / Python?

不问归期 提交于 2019-12-09 06:05:46
问题 I'd love a good native Python library to write XLS, but it doesn't seem to exist. Happily, Jython does. So I'm trying to decide between jexcelapi and Apache HSSF: http://www.andykhan.com/jexcelapi/tutorial.html#writing http://poi.apache.org/hssf/quick-guide.html (I can't use COM automation because I'm not on Windows, and even if I was, I couldn't afford Office licenses.) My initial thoughts are that POI/HSSF is very thorough, but also very Java-- everything seems a bit harder than it needs to

annoying “feature” (or bugs?) for RODBC

依然范特西╮ 提交于 2019-12-09 00:34:38
问题 RODBC is the main library in R to import data from a database into R. RODBC seems to have the ability of "guess" the datatype of the column which I find it particularly annoying. I have uploaded a file test.xls here, or you may create a xls file yourself: create 2 columns, first column named col_a and the second column named col_b . type whatever you like in col_a , I typed letters on this column for 92 rows at the 92th row of col_b, type a number there, I typed "1923" without changing the

Importing *cell-formatting* information from excel file into R

跟風遠走 提交于 2019-12-08 21:48:14
问题 I have been given excel files ( .xlsx ) where the format of the cell is relevant information which I need to capture. The key formatting of interest are (1) cell color and (2) border (left + right, full box or absent). Is it possible to read this into R? 回答1: This is a very old question but still comes up in searches so I think it is useful to point people toward the tidyxl package. tidyxl::xlsx_cells() reads an Excel spreadsheet in as a data frame where each row represents a single cell of

How do I parse an Excel file that will give me data exactly as it appears visually?

狂风中的少年 提交于 2019-12-08 17:35:55
问题 I'm on Rails 5 (Ruby 2.4). I want to read an .xls doc and I would like to get the data into CSV format, just as it appears in the Excel file. Someone recommended I use Roo, and so I have book = Roo::Spreadsheet.open(file_location) sheet = book.sheet(0) text = sheet.to_csv arr_of_arrs = CSV.parse(text) However what is getting returned is not the same as what I see in the spreadsheet. For isntance, a cell in the spreadsheet has 16:45.81 and when I get the CSV data from above, what is returned