openoffice-calc

Can python read the value of a cell in a spreadsheet?

╄→гoц情女王★ 提交于 2019-12-12 14:23:04
问题 All, Can python read the value of a cell in a spreadsheet? From a mapping/GIS/analysis standpoint: the simplest example would be a script that ran a buffer (proximity) tool on a given shapefile (GIS dataset). For the buffer distance parameter, instead of just using a number like '1000' feet, the script would point to a value in a cell of a spreadsheet (libre or open office preferred). If there was then a way to trigger the script from the spreadsheet by way of a button, that would be the next

Row numbering selection auto-fill till the end [closed]

[亡魂溺海] 提交于 2019-12-12 11:05:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a table with thousands of lines. I want to number rows by adding 1 2 3 next to first rows, then to select these and drag till end to make a fill with increasing numbers. How to autofill till last row without dragging with a mouse for several minutes? 回答1: Do you know how to double-click the autofill

Exporting a list to OpenOffice Calc from Delphi

一个人想着一个人 提交于 2019-12-12 09:46:06
问题 I'm using Delphi 7 and I'd like to export the contents of a list from my program to OpenOffice Calc using automation, instead of using files. The task is simple: create new document, iterate through rows/columns and change cell data. I've found some code but it's not complete, and I was hoping someone has some example code ready to accomplish this very simple task. It could save me a few hours of trying. Thanks in advance! Edit: I'd like to automate OpenOffice Calc to achieve what I wrote

Importing HTML table into OO Calc as UTF8 without converting to entities

岁酱吖の 提交于 2019-12-12 08:14:30
问题 I have a problem when opening a HTML table in OpenOffice or LibreOffice if it contains UTF8 extended characters like ÅÄÖåäö. When opening the table into M$ Excel it works as intended but I can't make OO do the same thing. By converting all extended characters to its HTML entity eqivalent Å etc. it works but it would be nice to get the correct characters directly. Is there anyone who knows what I should do? The following content I have in a file called excelsample.xls and if I open that with

OpenOffice Error vnd.sun.star.GraphicObject

随声附和 提交于 2019-12-12 04:32:08
问题 I am trying to display an image from a SpreadSheet(OpenOffice) into my PictureBox control and here is my code. Dim objServiceManager As Object Dim objDesktop As Object Dim objDocument As Object Dim objText As Object Dim objCursor As Object Dim oDoc As Object Dim ARG() Dim oGraph As Object Dim oView As Object Dim oDrawPage As Object Dim oSheet As Object Dim oimage As Object Dim osize As Object Dim Cell As Object Dim GraphURL As String Set objServiceManager = CreateObject("com.sun.star

Using a script to automate data entry to an OpenOffice Calc spreadsheet

谁都会走 提交于 2019-12-12 01:18:19
问题 I would like to be able to automate creating spreadsheets and adding data to an OpenOffice spreadsheet using a script (any scripting language is acceptable - PowerShell, Python, or even JavaScript). Is there a suitable library or tutorial? 回答1: Take a look at this white paper: Examples for Open Office Automation with Scripting Languages. 回答2: Curious, I just looked at OOo UNO to answer another question and the link is going to be useful again... 来源: https://stackoverflow.com/questions/954926

How to extract parsed data from once cell to another

那年仲夏 提交于 2019-12-10 17:56:46
问题 Given a spreadsheet cell containing a string that consists of a hyphenated series of character segments, I need to extract the last segment. For example, consider column A containing data strings like XX-XXX-X-XX-XX-G10 , where X denotes any character. What formula would I need to place in column B to get G10 as a result? A B 1 XX-XXX-X-XX-XX-G10 G10 I'm looking for a formula that could work in in Libre Office Calc, Open Office Calc, MS Excel, or Google Sheets. 回答1: Another possibility in LO

Reading Openoffice Calc (.ods) programmatically using c#?

核能气质少年 提交于 2019-12-10 13:36:32
问题 I want to know if it is possible to read OpenOffice Calc spreadsheet programatically with c#, I can do this for Excel(.xls and .xlsx) but unable to find a solution for reading calc spreadsheet. Help me if anyone has solution. 回答1: ODF .NET - It works for c# and you can read and write. Says like this on there page: ODF .NET allows you to write applications to create, modify and parse text documents and spreadsheets. Supports all versions of .NET Framework, .NET Compact Framework and Mono. 回答2:

Applying a formula to all cells in a column, not just one at a time?

会有一股神秘感。 提交于 2019-12-10 03:01:53
问题 In OpenOffice.org Calc, I would like to apply a formula to a column that references a cell from the same row but in a different column. I.e., =C1*48 in cell D1, but I want all cells in column D to do this without having to copy the formula to each one manually. Or another way of saying it, for each cell in C that has a number, I want to fill in the corresponding row-cell in D with a formula value based on that number. So far, all I can see from the documentation is that I'd have to copy

automatically import data from CSV to excel/calc sheet

安稳与你 提交于 2019-12-08 08:48:52
问题 I have here 12 CSV source file (just numbers separated with semicolon). I need on one action/click take this data and import it to excel/calc to 12 sheets (1 sheet for 1 csv source). Any Idea how can I do that? 回答1: you can do it with Excel vba: create a new workbook (or use the current one depending on your needs) ask the user to select several csv files (if they are on the same folder, else, you can ask the user if he still have some more to import) >> doc here copy or move the imported