https://bugs.documentfoundation.org/show_bug.cgi?id=93701

Cor Nouws <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |NOTABUG

--- Comment #1 from Cor Nouws <[email protected]> ---
Hi,

Thanks for filing the issue!

What you see is due to a api-change
Please try the following:

    If HasUnoInterfaces(ThisComponent,
"com.sun.star.document.XDocumentInfoSupplier") Then
    ' 3.x
        oDocInfo = ThisComponent.getDocumentInfo()
        oDocSetInfo = oDocInfo.getPropertySetInfo
    Else
        oDocSetInfo =
ThisComponent.getDocumentProperties.getUserDefinedProperties.getPropertySetInfo
        oDocInfo = ThisComponent.getDocumentProperties.getUserDefinedProperties
    End If

     If oDocSetInfo.hasPropertyByName(sName) Then
        ReadMyDocProp =    oDocInfo.getPropertyValue(sName) 
    End If    


Cheers,
Cor

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to