To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58278
                  Issue #:|58278
                  Summary:|Variable ThisComponent has no "supportsService"-
                          |method when loading a ODP or ODG file!
                Component:|framework
                  Version:|1.0.0
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|ui
              Assigned to:|tm
              Reported by:|renjikage





------- Additional comments from [EMAIL PROTECTED] Mon Nov 21 23:09:37 -0800 
2005 -------
I have a macro that is assigned to the global "open document" event. The code
looks like this:

Sub OnDocumentLoad
    Xray ThisComponent
    If Not ThisComponent.supportsService("com.sun.star.document.OfficeDocument")
Then
        Exit Sub
    EndIf
    'Register event listeners etc.
End Sub 

When I wanted to open a JPG picture in OpenOffice 2.0, Xray told me that it
doesn't work with this kind of object. This means that the document does not
support reflection or introspection.
Then I got an OO Basic exception that stated: "ThisComponent" has not a method
whose name is "supportsService".

The same happened when I opened a drawing document that I newly created before.
The same thing happens in OO Impress with presentation documents (PPT als well
as ODP).

In OpenOffice 1.1.5 everything works fine!

---------------------------------------------------------------------
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