[Solved] Insert database columns with a macro in Writer

Discuss the word processor
Post Reply
AfTech54
Posts: 64
Joined: Tue Dec 31, 2013 10:08 am

[Solved] Insert database columns with a macro in Writer

Post by AfTech54 »

I'm trying to record a macro doing an insertion of a database search query into a .odt. I stop recording after hitting the OK in dialog "Insert database columns", the data is then inserted into the doc. When running the macro it stops with the dialog? If this require hands on programming of a macro I'll not going to use/continue with it.
Last edited by AfTech54 on Wed Feb 12, 2020 3:43 pm, edited 1 time in total.
Ooo v4.1.9, Windows 10
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to insert database columns with a macro into Write

Post by RoryOF »

OpenOffice macro recorder is rudimentary. Often one will need to hand edit and extend the recorded code. If OpenOffice doesn't meet your needs, look for something that does.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to insert database columns with a macro into Write

Post by Villeroy »

Create a database report. A database report is a Writer table filled with query data.
Query right-click>Create Report...

A macro driven alternative: [Writer] Stand-Alone Database Reports
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
AfTech54
Posts: 64
Joined: Tue Dec 31, 2013 10:08 am

Re: How to insert database columns with a macro into Write

Post by AfTech54 »

OK both and thanks. The base report doesn't fullfill my needs.
I'll keep on doing it manually.
Ooo v4.1.9, Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved]How to insert database columns with a macro in W

Post by Villeroy »

There is a report builder extension which might fullfill your needs.
I use Calc as a report engine. It fullfulls my needs.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply