libreoffice-base

Updating database table with macro using data from form

邮差的信 提交于 2019-12-11 07:09:50
问题 I have a form in Libreoffice Base which is connected to the "Songs" table (basicaly db of music) and what I want to do is everytime I check/uncheck the CheckBox on that form I want the field "Played" of every record with the same name and Author as the one I have currently on the form to be checked/unchecked as well. I have read that the only way of doing so is with macros (as I don't want to use relations cause I have to many records for now). I've written such a macro: Sub UpdatePlayed()

LibreOffice Base; Tab order from mainform to subform

我是研究僧i 提交于 2019-12-11 00:14:32
问题 I have a form with a mainform and a subform. When the user is in the textbox, which is the closest to the subform, and the user press Tab, it has to jump into the subform, but it doesn't. It jumps to the textbox AFTER the subform. When the user is in the last textbox of the mainform and te user press tab, then it jumps into the subform. How do I make sure, that the user will jump to the subform when he is in the textbox, which is the closest one to the subform? Example image: 回答1: Tab order

libreoffice base create a list filtered by another list's value

允我心安 提交于 2019-12-08 09:23:03
问题 I have a table of provinces and a table of cities with ProvienceID. In a form, I want to create a list of cities filtered by selected value of provience list. How can I do that? I can create both lists but Cities list shows all cities from all provinces but i want to show only cities from the province that I have selected in Provinces list. I have another table "Users" with "CityID" and "ProvinceID" that my form edits it and I need to save selected values of Province and City Lists in it, not

How to access ODB files in Python 2.7

旧时模样 提交于 2019-12-05 07:31:36
I want to access an ODB file (made with LibreOffice Base) in Python and extract a table for further use. The ODB contains several tables, one relation design and several forms. Is it possible to achieve this without using any SQL? Edit: Since it seems overcomplicated to parse this format on my own, i'll consider using a proper HSQLDB engine. What python module accesses via HSQL (like sqlite3 for SQLite does)? Boud You can consider Python Uno API that comes with OpenOffice. There are several Python examples to interact with the API, including one with the sample database There is also this SO

LibreOffice: 'com.mysql.jdbc.driver' cannot be loaded

拟墨画扇 提交于 2019-12-02 20:32:46
I am trying to connect LibreOffice Base with an MySQL database, in phpMyAdmin, with a JDBC-connection. The first step is to select which database you want to select: The second step is to select which connection: The third step is to select your database: When I press 'Klasse testen' ( Test Class ), I get the following error: 'com.mysql.jdbc.driver cannot be loaded'. Does anyone know how to avoid this error? You need to download and "register" the JDBC connector first. To do so: Go to http://dev.mysql.com/downloads/connector/j/ and download the ZIP archive with the JDBC connector ("Platform

Command `libreoffice --headless --convert-to pdf test.docx --outdir /pdf` is not working

前提是你 提交于 2019-11-28 03:23:05
I have to wait for long after using this LibreOffice command which is intended to convert DOCX into PDF: libreoffice --headless --convert-to pdf test.docx --outdir /pdf But I'm getting no response and no error. No file is converted. It looks like terminal is hanging. So, is there is any way to track the error? I would first of all try it with giving absolute paths to the command. I suspect that the libreoffice binary does not work -- you have to locate the soffice binary and see if that works. Then, your --convert-to pdf is not sufficient. It needs to be: --convert-to pdf:writer_pdf_Export Be

Command `libreoffice --headless --convert-to pdf test.docx --outdir /pdf` is not working

。_饼干妹妹 提交于 2019-11-26 23:58:01
问题 I have to wait for long after using this LibreOffice command which is intended to convert DOCX into PDF: libreoffice --headless --convert-to pdf test.docx --outdir /pdf But I'm getting no response and no error. No file is converted. It looks like terminal is hanging. So, is there is any way to track the error? 回答1: I would first of all try it with giving absolute paths to the command. I suspect that the libreoffice binary does not work -- you have to locate the soffice binary and see if that