* @date 25.01.2007
*/
public int getIndexInForm(IForm form, IFormComponent formComponent) throws NOAException {
try {
if(form!= null && formComponent != null) {
XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime.queryInterface(XFormsSupplier.class, xDrawPage);
if(formsSupplier != null) {
XNameContainer nameContainer = formsSupplier.getForms();
XIndexContainer indexContainer = (XIndexContainer) UnoRuntime.queryInterface(XIndexContainer.class, nameContainer);
int len = indexContainer.getCount();
for(int i = 0; i < len; i++) {
XForm tmpForm = (XForm) UnoRuntime.queryInterface(XForm.class, indexContainer.getByIndex(i));
if(tmpForm != null && UnoRuntime.areSame(form.getXFormComponent(),tmpForm)) {