I'm looking to write a program to update cells in LibreOffice Calc in real-time (or at least at some fixed tick) with data pulled from a MySQL database. Ideally, when the values in the database are updated, the corresponding cells in the spreadsheet would be updated such that any formulas or calculations existing in calc would continue to operate on the new values. So far, I have yet to find a way to dynamically and programatically insert data in this manner. Is it possible?
How can I update LibreOffice Calc cells in real-time from a MySQL database?
5.9k Views Asked by Nate At
2
There are 2 best solutions below
Related Questions in MYSQL
- MySQL Select Rank
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Push mysql database script to server using git
- Why does mysql stop using indexes when date ranges are added to the query?
- Google Maps API Re-size
- store numpy array in mysql
- Whats wrong with this query? Using ands
- MySQL-Auto increment
- show duplicate values subquery mysql
- Java Web Application Query Is Not Working
- microsoft odbc driver manager data source name not found and no default driver specified
- Setting foreign key in phpMyAdmin
- No responses from google places text search api
- Adding to MAMP database in SQL/PHP
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
Related Questions in LIBREOFFICE
- LibreOffice 4.4.3 - Accessing Documents with jodconverter on different server
- LibreOffice - How to create a file dialog via python macro?
- Space before caption
- libreoffice output filter names
- how export to pdf with embeded fonts in centos soffice command line?
- Best ways of getting tables from R into Libre Office Writer?
- How to automatically calculate the SUS Score for a given spreadsheet in LibreOffice Calc?
- Preview MSOffice files in .NET WPF app via OpenOffice/LibreOffice
- How can I update LibreOffice Calc cells in real-time from a MySQL database?
- Optimizing formula copying in PyUno
- Making a number end to the nearest 7 (no decimals)
- Can I use OR in LibreOffice calc IF statement?
- Lack of access to all functions in exposed interfaces?
- Quickest way to apply a formula to an entire column?
- In Python: Get path and name of file that is open in LibreOffice and Evince
Related Questions in LIBREOFFICE-CALC
- SUM(IF()) not working
- LibreOffice: Cells with text to date
- Best ways of getting tables from R into Libre Office Writer?
- How to automatically calculate the SUS Score for a given spreadsheet in LibreOffice Calc?
- Spreadsheet if else sum
- How can I update LibreOffice Calc cells in real-time from a MySQL database?
- LibreOffice Calc new line in cell format code
- Dynamic number of random numbers
- UDF/User defined function libreoffice basic with built-in help/tip
- Replicate data in cells on other sheets within same document on a global document basis in LibreOffice Calc
- Making a number end to the nearest 7 (no decimals)
- Moving selection (only) of selected rows between columns
- Testing if first character of a string is non-numeric in LibreOffice Basic
- Can I use OR in LibreOffice calc IF statement?
- Why is cell increment not detected correctly in LibreOffice Calc
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The LibreOffice component Base is a database front-end that handles queries, forms, and reports. While by default it uses an embedded version of HyperSQL database to manage the tables, it comes with drivers for any number of other back-end programs, including MySQL.
I think the easiest way to approach this would be to create a Base file with your MySQL database as its back-end (note Base will only be able to see tables and views from MySQL - it won't import queries; although you can save queries in the Base file if you want). Make sure to 'register' the Base file so the rest of LibreOffice can 'see' it. Once the file is registered, any open LibreOffice component can access the data from MySQL (Base file can be closed).
Now you can import any tables or views (from the MySQL component) or queries (from the Base file) into Calc: [Tutorial] Using registered datasources in Calc
Refreshing the imported data can be done through an API call. Here is an example in StarBasic code:
Note in the second posting of the 'registered data sources' tutorial, it gives the API call to set the import ranges on a refresh timer.