com.sun.lang.servicenotregisteredexception
Posted: Thu Dec 20, 2007 3:37 pm
Hello ,
i'm writing a macro in OOBasic to insert, size and position a graphic in a calc document but ..
error message :........ com.sun.lang.servicenotregisteredexception
.................
dim mnoargs()
dim sgraphicurl as string
dim sgraphicservice as string, surl as string
dim odrawpages as object, odrawpage as object
dim ographic as object
sgraphicservice="com.sun.star.drawing.graphicobjectshape"
odrawpage=osheet.getdrawpage()
---> ographic=thiscomponent.createinstance(sgraphicservice) <------
ographic.graphicurl= sgraphicurl
odrawpage.add(ographic)
..............
thanks
i'm writing a macro in OOBasic to insert, size and position a graphic in a calc document but ..
error message :........ com.sun.lang.servicenotregisteredexception
.................
dim mnoargs()
dim sgraphicurl as string
dim sgraphicservice as string, surl as string
dim odrawpages as object, odrawpage as object
dim ographic as object
sgraphicservice="com.sun.star.drawing.graphicobjectshape"
odrawpage=osheet.getdrawpage()
---> ographic=thiscomponent.createinstance(sgraphicservice) <------
ographic.graphicurl= sgraphicurl
odrawpage.add(ographic)
..............
thanks