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 answers
Related Questions in MYSQL
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- window.location.href redirects but is causing problems on the webpage
- Error: local variable 'bramka' referenced before assignment
- Products aren't displayed after fetching data from mysql db (node.js & express)
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- Can't Fix Mariadb & Mysql ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2) On MacOs
- Express Mysql getting max ID from table not working cought in a promise
- failed to upload a table from sql file
- Update a MySQL row depending on the ID in Google Sheets Apps Script
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- How to display the column names which have only unique non-null values in MySQL table?
- mysql query takes too long because of wrong indexes usage
- Multitable joining in Sql
Related Questions in LIBREOFFICE
- How to switch encoding of LibreOffice strings in Java UNO API?
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- LibreOffice. Getting OutOfMemoryException while execute Conversion to PDF not instantly, but after long time of work
- Calculate the average of a filtered list/column with a condition (libre office calc)
- LibreOffice converts files from RTF to PDF to plain RTF text
- How to turn off LibreOffice API SDK Reference Browser?
- I compiled LibreOffice on Windows using Cygwin, but after running 'C:/cygwin64/opt/lo/bin/make', I encountered numerous errors
- How do I this shell (.zsh) script to put files into nested folders?
- win32gui SendMessage not working correctly in libreoffice
- Is there a way to program macros to finely tune animations in LibreOffice Impress?
- problem invoking msgbox after closing one document in python. object has no attribute 'getCurrentController'
- Add Image to Libre Office Writer with VB.Net
- How do I get content of a text cursor in Libreoffice Writer?
- How to convert excel to PDF using nodeJS? Getting issues using libreoffice-convert
- Libreoffice classes not available in java code
Related Questions in LIBREOFFICE-CALC
- Merge same data in different lines (libreoffice)
- I am trying to sum a cell from many sheets dependent on a condition in each sheet. using libreoffice calc
- How to sum/process portions of a pivot table results?
- Calculate the average of a filtered list/column with a condition (libre office calc)
- How can I use VLOOKUP in LibreOffice Calc?
- How to query image information in a Libreoffice macro?
- Excel/Calc gives wrong comparison result (after sending file)
- How to select entire row in a Libreoffice Basic macro?
- LibreOffice Calc SECOND function returning wrong value - why?
- Configure libreoffice calc such that default search is by columns not rows
- How to Print LibreOffice Calc Document on A2 or Larger Paper When Default Settings Limit to A4?
- From one column generate a table with two columns
- LibreOffice Calc, make row height adjust automatically to show all cell content
- Formulas with data ranges and hidden cells
- Modifying a named range with openpyxl causing LibreOffice pivot table to stop using range
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?
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)
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.