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

            Bug ID: 89794
           Summary: Exception in GetFirstPara method call
                    (SwXFlatParagraph::getPropertySetInfo(): not
                    implemented)
           Product: LibreOffice
           Version: 4.4.1.2 rc
          Hardware: Other
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

I have a following vbs script which I want to use with LibreOffice 4.4.1:
''''''''''''''''''''''''''''''''''''''''''''''
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager")
Set objDesktop= objServiceManager.createInstance("com.sun.star.frame.Desktop")

Set objDocument = objDesktop.getCurrentComponent

Set paraIterator = objDocument.getFlatParagraphIterator(1, False)
Set oPara = paraIterator.GetFirstPara ' Error happens here
Set keyMap = oPara.getMarkupInfoContainer

Set s = oPara.getText
oPara.commitStringMarkup 1, "test", 0, s.Length, keyMap
''''''''''''''''''''''''''''''''''''''''''''''

When GetFirstPara is called, a following exception is thrown:

---------------------------
Windows Script Host
---------------------------
Scenario:   C:\Users\Oleg\Desktop\bugdemo.vbs
String: 7
Symbol: 1
Error:  [automation bridge]UnoConversionUtilities<T>::anyToVariant 
Unexpected exception occurred. Message: SwXFlatParagraph::getPropertySetInfo():
not implemented
Code:   800A03E9
Source:     [automation bridge] 

---------------------------
ОК   
---------------------------

Am I doing something wrong (are there any alternatives?) or it is really a bug?

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