Infopath and Java integration: problem with loading forms - InfoPath Dev
in

InfoPath Dev

Infopath and Java integration: problem with loading forms

Last post 09-11-2013 03:26 AM by ondramaz. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-11-2013 03:26 AM

    Infopath and Java integration: problem with loading forms

    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
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.