We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Run external file from LO Draw [closed]

asked 2017-03-02 23:46:16 +0200

PerceptualRobots gravatar image

I would like to run an external program from Draw (odg).

This could be either by clicking a button or by running a macro. Which of these are possible?

I am using an odg diagram as a control system configuration and turning it into a specific XML format, and I would like to verify the transformation from the diagram.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-09-26 21:20:30.985700

1 Answer

Sort by » oldest newest most voted

answered 2017-03-03 01:18:17 +0200

Lupp gravatar image

updated 2017-03-05 15:47:25 +0200

Yo can use Shell from LibO BASIC. Of course you have to call the routine (Sub, Function) containing the call to Shell() in its body. You can do this by an event for a conrtol (button ...) or by using 'Tools' > 'Macros' > 'Run' or as a side effect of a function called from a formula evaluation ...

(Editing with respect to the comments below:)

Here the announced demo.

edit flag offensive delete link more


@Lupp. Thanks. Can you point me to a resource that explains how to add a control button to a diagram?

PerceptualRobots gravatar imagePerceptualRobots ( 2017-03-05 14:35:17 +0200 )edit

Do you mean the current 'Page' in 'Draw' by your term "diagram"?
If so it's the same as with other document classes: Select the 'Form Controls' toolbar visible. Switch to design mode, choose the control you want, click into the drawing, drag ...
A few additional details you may get from the example that I attach to my answer above.
Documentation you find generally here. I doubt if you find much about this specific question there.

Lupp gravatar imageLupp ( 2017-03-05 15:46:09 +0200 )edit

Thanks. Wasn't at all aware of 'Form Controls'

PerceptualRobots gravatar imagePerceptualRobots ( 2017-03-06 22:42:20 +0200 )edit

Question Tools

1 follower


Asked: 2017-03-02 23:46:16 +0200

Seen: 113 times

Last updated: Mar 05 '17