[Libreoffice-bugs] [Bug 44181] Macros: Macro library attached to document : LibraryNotLoadException
https://bugs.freedesktop.org/show_bug.cgi?id=44181 Niklas Johansson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |NOTABUG --- Comment #3 from Niklas Johansson --- Before a dialog can be used it's library needs to be loaded that means that most of the time DialogLibraries.LoadLibrary( "Standard" ) is needed. And if you provide that line of code then you should not get the error you are referring to. I did a test with LibreOffice 4.0.4 (Windows 7) and LibreOffice 3.5.7 (Ubuntu) and added a dialog to Standard in My Macros on my computer. I hooked it up to the image in your document, restarted my LibreOffice instance so the Standard library of My Macros gets unloaded. When I reopen the document and click the image I get a LibraryNotLoadedException, as expected and just as I get if the dialog is in the document. Everything in your bug description is expected behavior (maybe not that obvious though). The reason that it works the second time is that the Basic IDE loads the dialog library when it opens the basic code to show you the offending line. You could possibly argue that the function CreateUnoDialog should be extended to load the dialog library before it tries to execute it. I do not know what impact that might have on performance etc. Please feel free to file an enhancement request to extend CreateUnoDialog if you feel strongly about it. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 44181] Macros: Macro library attached to document : LibraryNotLoadException
https://bugs.freedesktop.org/show_bug.cgi?id=44181 sasha.libreoff...@gmail.com changed: What|Removed |Added Platform|Other |All OS/Version|All |Linux (All) Status|UNCONFIRMED |NEW CC||sasha.libreoff...@gmail.com Ever Confirmed|0 |1 Version|LibO 3.5.0 Beta1|LibO 3.3.4 release --- Comment #2 from sasha.libreoff...@gmail.com 2012-05-03 01:50:59 PDT --- Reproduced in 3.3.4 and 3.5.3 on Fedora 64 bit, but not reproduced on Windows 7 32 bit IMHO Unix specific bug Changing platform to Linux because can not find Unix. Changing version to 3.3.4 as most early reproducible -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 44181] Macros: Macro library attached to document : LibraryNotLoadException
https://bugs.freedesktop.org/show_bug.cgi?id=44181 --- Comment #1 from Tribunal Federal 2011-12-27 06:57:34 PST --- In fact, the problem is that the behavior is not the same if the library is stored in a library of Libre Office or it it is attached to a document. The code that I sent is working as is if you add it to the Standard Library of Libre Office. For getting it work attached to the document, I have justto add the following line of code before the CreateUnoDialog instruction : DialogLibraries.LoadLibrary( "Standard" ) The behavior should be the same, independently if the library is attached to a document or not !!! -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs