https://bugs.documentfoundation.org/show_bug.cgi?id=125485
Bug ID: 125485
Summary: inserting ne TextField.URL failed with expection
__main__.IllegalArgumentException
Product: LibreOffice
Version: 6.2.3.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Description:
Exception is received with following code:
text = model.Text
wtf = model.createInstance("com.sun.star.text.TextField.URL")
wtf.Representation = "testURL"
wtf.URL = "www.google.de"
curs = text.createTextCursor()
text.insertTextContent(curs, wtf, False)
Traceback (most recent call last):
File "C:/Users/mt1-w/PycharmProjects/untitled1/test.py", line 73, in <module>
text.insertTextContent(curs, wtf, False)
__main__.IllegalArgumentException
Other TextFields are working fine.
Steps to Reproduce:
see code from description
Actual Results:
can“t set Hyperlinks by Python script
Expected Results:
execption is caused
Reproducible: Always
User Profile Reset: No
Additional Info:
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs