[Solved] Basic Runtime Error. . .com.sun.star.container

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
streub
Posts: 128
Joined: Thu Jan 02, 2014 2:48 am
Location: Wisconsin

[Solved] Basic Runtime Error. . .com.sun.star.container

Post by streub »

"No such element"

This occurs when I attempt to load a dialog form in Calc

Streub
Last edited by streub on Wed Aug 17, 2016 12:58 pm, edited 1 time in total.
Streub

The more I learn from this forum, the more I get excited about using this strange application
FJCC
Moderator
Posts: 9277
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Basic Runtime Error. . .com.sun.star.container

Post by FJCC »

Please show your code, say at which line the error occurs, and explain where the dialog is stored.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
streub
Posts: 128
Joined: Thu Jan 02, 2014 2:48 am
Location: Wisconsin

Re: Basic Runtime Error. . .com.sun.star.container

Post by streub »

The dialog is stored in "My Dialogs" under "Standard"

Code: Select all

Sub dteshw
BasicLibraries.loadlibrary("Tools")                            'Error occurs here
oDialog1=loaddialog("standard","dialog1")
oDialog1.Execute()
End Sub


Streub

The more I learn from this forum, the more I get excited about using this strange application
streub
Posts: 128
Joined: Thu Jan 02, 2014 2:48 am
Location: Wisconsin

Re: Basic Runtime Error. . .com.sun.star.container

Post by streub »

Damned thing now works

Thank you
Streub

The more I learn from this forum, the more I get excited about using this strange application
Post Reply