[Solved] Filepicker using built-in dialogs

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
nienberg
Posts: 28
Joined: Mon Sep 21, 2009 9:23 pm
Location: Berkeley, CA

[Solved] Filepicker using built-in dialogs

Post by nienberg »

On Windows 7 x64 there is a bug that prevents the use of the "setDisplayDirectory" in the filepicker.

It is documented here
https://www.libreoffice.org/bugzilla/sh ... i?id=43021
and here
https://issues.apache.org/ooo/show_bug.cgi?id=110141

In order to work around this, I am trying out the user preference "Use LibreOffice dialogs". It does correctly open to the directory set in the macro, but there is another problem. I don't see any way to navigate to another drive (local or network). I tried making windows shortcuts to other drives in the DisplayDirectory, but LibreOffice interprets the shortcuts as files instead of links. I don't see how I could live with this shortcoming, so I guess I will have to revert to the native dialogs, unless someone has a better idea?

Thanks,
Last edited by nienberg on Mon Feb 06, 2012 10:52 pm, edited 2 times in total.
LibreOffice 3.4.3
Windows XP, Windows 7, and MacOS X 10.7
nienberg
Posts: 28
Joined: Mon Sep 21, 2009 9:23 pm
Location: Berkeley, CA

SOLVED Filepicker using built-in dialogs

Post by nienberg »

I've discovered that if you click the Up One Level button repeatedly then you will eventually get to the Top Level, which will show all your assigned drive letters.

Also, if you configure the Path for My Documents to "\\\" (3 backslashes), then the home button will display the Top Level.

You can also type in a network path in "\\server\share" format in the filename box and the directory will shift to display that share. I think this is good enough to go ahead with using the LibreOffice dialogs.
LibreOffice 3.4.3
Windows XP, Windows 7, and MacOS X 10.7
Post Reply