Hi,
In our project We call Infopath ActiveX component from java using EZJCom (allowing Calling COM/ActiveX components written in any language, from Java http://www.ezjcom.com/)
Rarely, when a form (.xml) is loaded into Infopath component, it stuck and Infopath component does not notify host with event 'LoadFinished'. The consequence is that such form is not editable.
Any idea, how to solve this problem?
Code snapshot:
activeX = new InfoPathEditorObject();
activexContainer = new OverrideJComActiveXContainer();
activexContainer.setActiveX( activeX );
activeX.getInfoPathEditor().SetNotifyHostEventHandler(new CustomNotifyHostEventHandler(this));
activeX.getInfoPathEditor().Load(baseForm);
public class CustomNotifyHostEventHandler extends INotifyHostEventHandler
{
public void NotifyHostEventHandler(JComObject jComObject, String string)
{
// not called in rare occasions
logger.info("NotifyHost event '{}' for {}", string, jComObject)
}
}
Ondra