am trying to learn some about develop Extensions. In the course of this I found Extension Compiler v2.1.2 by B. Marcelly.
My problem is, that if I start the template II'am running in an endless while loop:
A new *.odt file is created and pop up the following constantly:
- 1) a MessageBox with text: "After this message you will be asked to store this doc..."
2) a Dialog let me choose the store path
(btw: nothing is stored or created under chosen path)
Am I doing something wrong or did I not understand something correctly? Maybe a bug?
Thx for some hints
Ralf
Edit: Ok I think I found the reason. The "guilty" option I' had set in the past was:
|
Code: Select all
Sub checkDocumentHasName
Dim currWindow As Object, dispatcher As Object
initToolIdentity
Do While Len(ThisComponent.Url) = 0
MsgBox(txt0241, 48, ToolIdentity)
currWindow = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(currWindow, ".uno:SaveAs", "", 0, Array())
Loop
End Sub