https://bugs.documentfoundation.org/show_bug.cgi?id=165523
--- Comment #14 from [email protected] --- So, here is a reducded source code from my application showing the problem namespace ConsoleApp1 { internal class Program { public static XComponentContext m_xContext; public static XMultiServiceFactory mxMSFactory; static void Main(string[] args) { m_xContext = uno.util.Bootstrap.bootstrap(); mxMSFactory = (m_xContext != null) ? (XMultiServiceFactory)m_xContext.getServiceManager() : null; var propValues = new PropertyValue[1]; propValues[0] = new PropertyValue { Name = "Hidden", Value = new Any(false) }; var aLoader = (XComponentLoader) mxMSFactory.createInstance("com.sun.star.frame.Desktop"); var mxDocument = (XTextDocument) aLoader.loadComponentFromURL(string.IsNullOrEmpty("") ? "private:factory/swriter" : "", "_blank", 0, propValues); XText aXText = mxDocument.getText(); XTextRange aTextRange = aXText.getEnd(); XPropertySet propSet = (XPropertySet)aTextRange; propSet.setPropertyValue("ParaStyleName", new Any("Überschrift 1")); //propSet.setPropertyValue("ParaStyleName", new Any("Heading 1")); } } } -- You are receiving this mail because: You are the assignee for the bug.
