To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=41816


User as changed the following:

                  What    |Old value                 |New value
================================================================================
               Assigned to|as                        |cn
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Thu Mar 17 02:41:11 -0800 
2005 -------
Sorry ... but your script seams to be wrong.
a)
"urlS(0)" is not a valid construct in basic .. as a result of that the loader 
mis an URL 
in general

b)
"dim descr(2) ..." must be changed to "dim descr(1) ..."
Otherwise you create an array with 3 elements ... but use only 2 of them realy.

c)
Parsing of the URL is not needed here. Because the mediadescriptor does not 
support an util.URL struct . It uses an URL as string value only.

Please use the following changed script to verify the problem again.

Sub Main

        url    = "private:factory/swriter"
        frame  = StarDesktop.findFrame("_blank", 0)
        loader = createUnoService("com.sun.star.comp.office.FrameLoader")

        dim descr(1) as new com.sun.star.beans.PropertyValue
        descr(0).Name = "URL"
        descr(0).Value = url
        descr(1).Name = "TypeName"
        descr(1).Value = "writer8"

        frame.getContainerWindow().setVisible(true)
        isok = loader.load(descr(), frame)
        
        if isok then
                msgbox "OK"
        else
                msgbox "Error"
        endif

End Sub


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to