spreadsheet

Apache MetaModel - bad performance querying spreadsheet

不羁的心 提交于 2019-12-18 09:43:12
问题 I need to query a spreadsheet file in Java. I'm using Apache MetaModel. I imported it with maven using <dependency> <groupId>org.apache.metamodel</groupId> <artifactId>MetaModel-excel</artifactId> <version>4.5.2</version> </dependency> Everything works fine but the next() instruction when it's supposed to return false takes a few seconds, why? import org.apache.metamodel.DataContext; import org.apache.metamodel.excel.ExcelDataContext; import org.apache.metamodel.schema.Schema; import org

How do I populate a combo box from a column in my excel spread sheet?

假装没事ソ 提交于 2019-12-18 07:19:45
问题 I have two excel spreadsheets, one has a combobox, the other one has a list of department names. I need to populate the combobox with the department names. How do I acheive this. 回答1: Here is a VBA Code: Dim vArr as Variant Dim i as Integer vArr = WorksheetFunction.Transpose(Sheets(2).Range("A2:A10").value) With Sheets(1).OLEObjects("ComboBox1").Object .Clear For i = Lbound(vArr) to Ubound(vArr) .AddItem vArr(i) Next i End With Here is the most simpler way to load the combobox, given your

Reading time values from spreadsheet using poi api

℡╲_俬逩灬. 提交于 2019-12-18 05:53:56
问题 I am trying to read a date column and a time column from a spreadsheet. I am able to retireve the date column from the sheet, but not the time column. For example, my sheet will have rows of the form: date time 11/2/2012 12:15:01 I have the following code to get the date column: while(cellIterator.hasNext()) { HSSFCell cell = (HSSFCell)cellIterator.next(); switch(cell.getCellType()){ case HSSFCell.CELL_TYPE_NUMERIC: HSSFCellStyle style = cell.getCellStyle(); if (HSSFDateUtil

What is the difference between Sheets.Select and Sheets.Activate?

自古美人都是妖i 提交于 2019-12-18 03:29:25
问题 In VBA for Excel, what is the difference between Sheets.Select and Sheets.Activate ? 回答1: The difference is in their flexibility. Activate make the specified sheet the active sheet, and may only be applied to a single sheet Select allow for optionally extending the currently selected sheets to include the specified sheet, eg Worksheets("Sheet2").Select Replace:=False and also allow for selecting an array of sheets Sheets(Array("Sheet3", "Sheet2")).Select In their minimal form Select and

How I can create and upload google spreadsheet using android app?

坚强是说给别人听的谎言 提交于 2019-12-17 21:35:47
问题 I have spent too much time on this so I would like to ask about it. I want to create and upload google spreadsheet using android. I know that I should use Drive API to do this. I know how to create file using this API(even excel file) but when setMimeType is set to application/vnd.google-apps.spreadsheet I receive an error on the device: Error while trying to create the file. @Override public void onConnected(Bundle connectionHint) { super.onConnected(connectionHint); // create new contents

Selecting non-blank cells in Excel with VBA

社会主义新天地 提交于 2019-12-17 18:53:20
问题 I'm just beginning to dive into VBA and I've hit a bit of a roadblock. I have a sheet with 50+ columns, 900+ rows of data. I need to reformat about 10 of those columns and stick them in a new workbook. How do I programmatically select every non-blank cell in a column of book1, run it through some functions, and drop the results in book2? 回答1: The following VBA code should get you started. It will copy all of the data in the original workbook to a new workbook, but it will have added 1 to each

How to format spreadsheet columns using ColdFusion?

蹲街弑〆低调 提交于 2019-12-17 16:59:15
问题 I am using SpreadsheetFormatColumns() to format the columns in a spreadsheet to "text", but I don't know how to do this, all the formats in the livedocs are for numbers, currency or dates... is there something like SpreadsheetFormatColumns(mySpreadsheet, {dataFormat="text"}, "1-15") out there? this is really bugging me... Thanks 回答1: In ColdFusion 9.0.1 (i.e. updater 1), if you use SpreadsheetSetCellValue() it will respect the format you have previously set. So to force a column to be text

How do I read the content of an Excel spreadsheet using Ruby?

微笑、不失礼 提交于 2019-12-17 15:34:54
问题 I am trying to read an Excel spreadsheet file with Ruby, but it is not reading the content of the file. This is my script book = Spreadsheet.open 'myexcel.xls'; sheet1 = book.worksheet 0 sheet1.each do |row| puts row.inspect ; puts row.format 2; puts row[1]; exit; end It is giving me the following: [DEPRECATED] By requiring 'parseexcel', 'parseexcel/parseexcel' and/or 'parseexcel/parser' you are loading a Compatibility layer which provides a drop-in replacement for the ParseExcel library.

How to generate an Excel document with multiple worksheets from PHP?

六月ゝ 毕业季﹏ 提交于 2019-12-17 07:12:43
问题 I want to generate an MS Excel file from PHP. I know one can do something like this: header ( "Content-type: application/vnd.ms-excel" ); header ( "Content-Disposition: attachment; filename=foo_bar.xls" ); But it will generate a file with just one Sheet. What I want is generating a file with multiple sheets. How can I do that? Maybe there's a third party library, but I haven't found too much. 回答1: Try looking at PHPExcel. This is a simple example that creates an Excel file with two sheets: <

Create an Excel Spreadsheet from a Oracle Database

試著忘記壹切 提交于 2019-12-17 06:50:50
问题 I have a table in a Oracle database. I have to create a complex spreadsheet structure from the Oracle table. I am looking for best approach to achieve this. Can I use SSIS or use some Oracle utilities to create the spreadsheet. Any help would be extremely appreciated. Thanks in advance. Regards Dibs 回答1: I suppose the problem is, just how complex is your "complex structure"? Programming IDEs such as Oracle SQL Developer or Quest TOAD have wizards to export data table to CSV files. If you want