[Solved] Using Programming to disconnect a data source

Discuss the word processor
Post Reply
mbeamer
Posts: 1
Joined: Fri Nov 30, 2007 8:24 pm

[Solved] Using Programming to disconnect a data source

Post by mbeamer »

I was wondering if anyone knows of a way to program a macro to disconnect a data source.

The reason I ask is that I am currently running a separate application which exports the data for a merge in a text file. The problem is that there are multiple times a day that a merge needs to be run, however after the first time the data file is accessed by OO it is locked until the data source is disconnected.

I appreciate any help.
Last edited by mbeamer on Mon Dec 03, 2007 9:35 pm, edited 1 time in total.
User avatar
floris v
Volunteer
Posts: 4638
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Using Programming to disconnect a data source

Post by floris v »

The oooforum gave this result: http://www.oooforum.org/forum/viewtopic.phtml?t=10399

connection.close() does the trick.
LibreOffice 25.8.4.2 on Ubuntu Linux
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Post Reply