Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When the function gets to the line

 oLibDialog = oLib.GetByName(DialogName)

I get an error:

BASIC runtime error. 
An exception occurred Type: com.sun.star.container.NoSuchElementException  
Message: .

This says that oLib does not contain the object specified by the string in DialogName.

Since you are setting oLib with this:

oLibContainer.LoadLibrary(LibName)
oLib = oLibContainer.GetByName(Libname)

Then I would use MRI to investigate where things are going wrong. Try putting mri oLibContainer before these lines and then use MRI to drill down into the mess. In other words in mri select the methods and then select LoadLibrary and enter your library name. Then select the method getByName and see if what you want is there.

I've found getByName in MRI to be very handy to confirm where I think I am in the object mesh.