To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=94459 Issue #|94459 Summary|InsertByName from com.sun.star.drawing.ColorTable didn |'t work Component|api Version|OOO300m7 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|aladdin2k7
------- Additional comments from [EMAIL PROTECTED] Tue Sep 30 08:48:57 +0000 2008 ------- InsertByName from com.sun.star.drawing.ColorTable didn't work as expected. I was trying to add a color (insertByName) to the color palette but it doesn't add the color. Is there a workaround ? something else to do ? Here is the source code : Sub addColorPalette() dim serviceColor As Object serviceColor = createUnoService("com.sun.star.drawing.ColorTable") 'Error IllegalArgumentException serviceColor.insertByName("myColor",RGB(100,100,100)) 'Do nothing 'serviceColor.insertByName("myColor","123456") End Sub The second argument is a variant representing the RGB Color. Tested on OOo3 RC3 and OOo 2.4 => Not OK. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]