.Net Core SDK, cannot set text property

Ilya Sokolov is at rula-tech.com
Thu Mar 27 15:28:01 UTC 2025


Hello

I am trying to use the .Net Core SDK and  try to run some program, which
previously run on .Net Framework.

There is a strange issue here: there are two properties of a
character, CharEscapement and CharEscapementHeight, they are set like

 XText DocText = m_Doc.query<XTextDocument>().getText();
m_TextCursor = DocText.createTextCursor();

XPropertySet CurObject = m_TextCursor.query<XPropertySet>();

CurObject.setPropertyValue("CharEscapement", new Any((Int16)0));
CurObject.setPropertyValue("CharEscapementHeight", new Any((Byte)100));

And the CharEscapement is set successfully, but an : 'Object reference not
set to an instance of an object.' exception occurres when the second
property is set.

Could you tell me if there is a known workaround about the issue?



-- 
Best Regards,
Ilia Sokolov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250327/9a16db05/attachment.htm>


More information about the LibreOffice mailing list