oObj = (XDrawPage) AnyConverter.toObject(
new Type(XDrawPage.class),oDP.getByIndex(0));
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
oShape = SOF.createShape(xComp,5000,3500,7500,5000,"Rectangle");
DrawTools.getShapes((XDrawPage) oObj).add(oShape);
XShape oShape1 = SOF.createShape(xComp,
5000,5500,5000,5000,"Rectangle");
DrawTools.getShapes((XDrawPage) oObj).add(oShape1);
} catch (com.sun.star.lang.WrappedTargetException e) {