spreadsheet

Embed a spreadsheet/table in a PyGTK application?

帅比萌擦擦* 提交于 2019-12-06 12:31:20
In my application, we want to present the user with a typical spreadsheet/table (OO.O/Excel-style), and then pull out the values and do something with them internally. Is there a preexisting widget for PyGTK that does this? The PyGTK FAQ mentions GtkGrid , but the link is dead and I can't find a tarball anywhere. nosklo GtkGrid is deprecated in favor of the more powerful and more customizable GtkTreeView . It can display trees and lists. To make it work like a table, you must define a ListStore where it will take the data from, and TreeViewColumn s for each column you want to show, with

Can the ruby spreadsheet gem wrap text?

我是研究僧i 提交于 2019-12-06 08:25:28
问题 Is there a way to use the ruby spreadsheet gem to produce a spreadsheet with a cell whose text is wrapped? (If not, is there some other way to do it?) Thanks, --Paul p.s. In response to two good suggestions that unfortunately won't work for me, I should note: 1) I cannot convert my ruby application to JRuby at this time. 2) I am developing on Linux, not Windows. 回答1: Please try this for Ruby spreadsheet gem: fmt = Spreadsheet::Format.new :text_wrap => true sheet.row(y).set_format(x, fmt) form

Android Google Api for SpreadSheet

二次信任 提交于 2019-12-06 08:22:10
I'm trying to figure out how to use Google Api for accessing/editing Google SpreadSheet. I want to have a connection always with the same spreadsheet from many devices. I got examples using the AccountManager, but i should not use the user account. There is any good turorial? Right now i've got the following..is that right? AccountManager accountManager = AccountManager.get(this); ArrayList googleAccounts = new ArrayList(); // Just for the example, I am using the first google account returned. Account account = new Account("email@gmail.com", "com.google"); // "wise" = Google Spreadheets

How to I add a hyperlink to a cell in axlsx?

徘徊边缘 提交于 2019-12-06 07:12:15
问题 With the spreadsheet gem, you can run Spreadsheet::Link.new('http://hyperlinkhere.com', 'Some words') to make a spreadsheet with a cell containing the string "Some words" with a hyperlink leading to "http://hyperlinkhere.com." What's the axlsx equivalent? EDIT: What if I want to write a row with more than one cell? With spreadsheet , you can do this: newSheetRow[13] = Spreadsheet::Link.new('url.com','text') newSheetRow[14] = 'some text' How do I do that with axlsx 's .add_row method? 回答1: You

What strategy to migrate data from a spreadsheet to an RDBMS?

心不动则不痛 提交于 2019-12-06 06:54:27
问题 This is linked to my other question when to move from a spreadsheet to RDBMS Having decided to move to an RDBMS from an excel book, here is what I propose to do. The existing data is loosely structured across two sheets in a work-book. The first sheet contains main record. The second sheet allows additional data. My target DBMS is mysql, but I'm open to suggestions. Define RDBMS schema Define, say, web-services to interface with the database so the same can be used for both, UI and migration.

EXCEL Multiple Ranges - need different answers for each range

走远了吗. 提交于 2019-12-06 04:32:01
I have spent a few hours working out how to do this which is why im posting it here now... If you want to return different values in a cell based on which range the value entered in another cell comes under then I have worked out how to do it!! (bear in mind that this is specific to my spreadsheet and was for calculating prices i.e. 0.99 = £0.99) For example: IF G2 is ABOVE "0" BUT BELOW "1" THEN display "0.1" IF G2 is ABOVE "0.99" BUT BELOW "5" THEN display "0.15" IF G2 is ABOVE "4.99" BUT BELOW "15" THEN display "0.2" IF G2 is ABOVE "14.99" BUT BELOW "30" THEN display "0.5" IF G2 is ABOVE

formatDate() gives correct date -1 day (Google Apps Script)

断了今生、忘了曾经 提交于 2019-12-06 03:39:42
I'm using a Google Spreadsheet to log some things on a day-to-day basis. To make it user-friendly to my colleagues I've made the spreadsheet as "interface-ish" as possible, basically it resembles a form. This "form" has a submit button that saves the sheet and creates a new sheet (copy of template). The problem is that the sheet that is saved should be saved with the date from a cell. BUT it saves with the date one day before the actual date... (!) I'm going nuts trying to figure out why. Here's the code from the Google Apps Script I'm calling when the submit button is pressed: function

Open XML SDK: get “Unreadable content” error when trying to populate more than 25 columns

China☆狼群 提交于 2019-12-05 22:52:24
问题 I have created a spreadsheet using Open XML SDK in C#, and successfully populated two worksheets. When trying to populate a third, I get an "Unreadable content" error when opening the completed document, and it appears to occur when I attempt to populate more than 25 cells in a row on the third. I'm using the same code fragment as has worked successfully elsewhere in the document: string[] headers2 = { "Reference", "Raised", "Priority", "Affected", "Linked incidents", "Points", "SLA",

Google apps script to grab data from webpage

坚强是说给别人听的谎言 提交于 2019-12-05 22:18:16
I had help making this script before that would pull the playercount off a website and log it into spreadsheets with a date and timestamp, this was: function pullRuneScape() { var page = UrlFetchApp.fetch('http://runescape.com/title.ws').getContentText(); var number = page.match(/PlayerCount.*>([0-9,]+)</)[1]; SpreadsheetApp.getActive().getSheetByName('RuneScape').appendRow([new Date(), number]); } Basically in the webpage they list the amount of players and I wanted to log it every 5minutes or so, but they have another site I wanted to grab the number from too and I need some help. It's at

Using read.xlsx in Shiny R App

a 夏天 提交于 2019-12-05 21:14:39
I am trying to load an excel file and display the summary. The file is loading without any errors but not displaying anything. Here is my code ui.R library(shiny) shinyUI(pageWithSidebar( headerPanel("Analysis"), sidebarPanel(wellPanel(fileInput('file1', 'Choose XLSX File', accept=c('sheetName', 'header'), multiple=FALSE))), mainPanel( tabsetPanel( tabPanel("Tab1",h4("Summary"), htmlOutput("summary")) ))) server.R library(shiny) shinyServer(function(input, output) { dataset = reactive({ infile = input$file1 if (is.null(infile)) return(NULL) infile_read = read.xlsx(infile$datapath, 1) return