spreadsheet

A more advanced table/spreadsheet SWT implementation

故事扮演 提交于 2019-11-30 03:29:48
I'm developing an application based on Eclipse's Rich Client Platform that relies heavily on the use of tables for showing and editing data. I'm currently using the SWT implementations of Table and TableViewer. My users are forever complaining that it "doesn't work like in excel". Most notably, I can't select a single cell within a row and all rows have the same height. I'm looking for an implementation that addresses these issues. Criteria: Free (as in speech and beer -- I'm a phd student and the program is EPL) SWT (the various solutions for including swing in SWT aren't very nice) Edit: So

Paste Excel data into html table

╄→尐↘猪︶ㄣ 提交于 2019-11-30 00:05:45
Using Javascript, how do I create an HTML table that can "accept" numeric matrix data from excel (or google spreadsheet), via "copy" in the spreadsheet and then "paste" into the table in the browser. This would only work reliably on IE since Firefox (and likely others) don't allow access to the clipboard without specifically allowing it; the earlier suggestion of pasting into a textarea first might work better than this. When you copy from a spreadsheet, generally the cells are separated with a tab (chr9) and the rows with a CR (chr13). This script converts the clipboard into a 2D array and

convert spreadsheet formulas to java

女生的网名这么多〃 提交于 2019-11-30 00:00:09
问题 What tools are available to convert an OpenOffice or Excel spreadsheet (with all its formulas) into a Java object that can be called at run-time? Obviously this would only make a calculation engine and just be about numbers and text, not timing or API calls. Even with named cell ranges being used to (effectively) name variables the output code would presumably be difficult to understand. It would need refactoring to get more like normal Java code. However I think it would be useful for

Retrieve rows from spreadsheet data using google app script

爱⌒轻易说出口 提交于 2019-11-29 21:28:59
I am using Google app script to write form data to spreadsheet. Now I would like to fetch the values from Excel which matches conditions (eg., filtered by date, username) and display them with app script. My spreadsheet has +-------------+-----------+----------------------+ | Date | Username | Comment | +-------------+-----------+----------------------+ | 2012-05-02 | palani | My first comment | | 2012-05-02 | raja | My second comment | | 2012-05-03 | palani | My third comment | | 2012-05-03 | raja | My fourth comment | +-------------+-----------+----------------------+ Now I want to filter

How to set background color for a row based on current date in Google Docs Spreadsheet?

て烟熏妆下的殇ゞ 提交于 2019-11-29 18:26:51
问题 I have a Google Docs SpreadSheet, where in the column A are dates (A1: 2013-11-22, A2: 2013-11-23, A3: 2013-11-24 etc). I would like to automatically highlight - set a background color for a row, where in the column A is today's date. To have every day a different row highlighted. I expect that I will need a script, IMHO this is not possible to be done with conditional formating in Google Docs SpreadSheet. Any idea how to do it? Thanks a lot! 回答1: This is how I did it. I did conditional

Apache MetaModel - bad performance querying spreadsheet

久未见 提交于 2019-11-29 18:04:13
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.apache.metamodel.schema.Column; import org.apache.metamodel.schema.Table; import org.apache.metamodel

Adding command buttons to worksheet at run time and also define events

笑着哭i 提交于 2019-11-29 16:17:33
I am trying to add an ActiveX command button in my work sheet at run time. The number of command buttons will depend on the number of lines in the work sheet. I plan to give x and y coordinates in the command button property to position them correctly. I understand that we can insert command buttons in user form this way. Private Sub CommandButton1_Click() Me.Controls.Add _ "Forms.CommandButton.2", "CopyOf" End Sub How can we insert command buttons in a work sheet (not user form). Worksheets("abc").Add doesn't work. Also how to I define independent click events for them. For example if I click

Read csv with two headers into a data.frame

时间秒杀一切 提交于 2019-11-29 15:48:57
Apologies for the seemingly simple question, but I can't seem to find a solution to the following re-arrangement problem. I'm used to using read.csv to read in files with a header row, but I have an excel spreadsheet with two 'header' rows - cell identifier (a, b, c ... g) and three sets of measurements (x, y and z; 1000s each) for each cell: a b x y z x y z 10 1 5 22 1 6 12 2 6 21 3 5 12 2 7 11 3 7 13 1 4 33 2 8 12 2 5 44 1 9 csv file below: a,,,b,, x,y,z,x,y,z 10,1,5,22,1,6 12,2,6,21,3,5 12,2,7,11,3,7 13,1,4,33,2,8 12,2,5,44,1,9 How can I get to a data.frame in R as shown below? cell x y z a

Why does my spreadsheet function behave differently than when called from code?

眉间皱痕 提交于 2019-11-29 14:18:46
When I call the function from Excel (in a cell): =allVlookup(O24,A:D,3,"") vs via vba MsgBox allVlookup(Range("O24"), Range("A:D"), 3, "") I get different results. When called from Excel, I only get the first match, but when calling from a vba test sub with identical parameters (except adding Range to the arguments to allow the sub to run), I get the full results (which is more than one). The function I am using is: Public Function allVlookup(lookupRange As Range, tableRange As Range, colIndex As Integer, Optional delimiter As String = "") As String Dim c As Range Dim firstAddress As String

Access Google-apps public spreadsheet via Javascript

痞子三分冷 提交于 2019-11-29 10:09:51
问题 Spent a bunch of time looking at this.. It seems that what little info there was about accessing a Google-apps spreadsheet is not very well maintained.. At Google IO this year there was an announcement of enhanced Google-apps script. Including UI elements.. That got me to thinking of creating a widget based on data in Google spreadsheets, no data writing just a simple reading/look up and display calculations.. Then I realized the UI feature was only available for Premier account.. Not a huge