|
|
|
|
First, please extract the file InfoJetSoft.POM.cs in the folder "pom" from InfoJetSoft.zip, and add it into the form code project( the reference to System.Windows.Forms is required ). Then please revision your form codes to adapt InfoJet POM.
Note:
To prevent the assembly version conficts, we suggest importing the source codes directly, rather than sharing the proxy classes in a stand-alone assembly.
|
|
|
using Microsoft.Office.InfoPath;
using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using mshtml;
using InfoJetSoft.POM;
namespace Template1
{
public partial class FormCode
{
public void InternalStartup()
{
EventManager.XmlEvents["/my:myFields/my:field1"].Changed
+= new XmlChangedEventHandler(field1_Changed);
}
public void field1_Changed(object sender, XmlEventArgs e)
{
XmlFormProxy formProxy = new XmlFormProxy(this, sender, e);
On_field1_Changed(formProxy);
}
[System.ComponentModel.Description("InfoJet POM, EventType=Changed, MatchPath=/my:myFields/my:field1")]
public static void On_field1_Changed(XmlFormProxy formProxy)
{
System.Diagnostics.Debug.WriteLine("On_field1_Changed");
System.Diagnostics.Debugger.Break();
formProxy.XmlEventSite.InnerXml = formProxy.XmlEventSite.InnerXml.ToUpper();
}
}
}
|
|
|
As you seen, InfoJet Service supports to debug the form codes with logs and breakpoints.
To debug the form codes, please open the form project in Visual Studio, and press "F5" to build a debug version of the form code assembly, then save the form template.
At last, run the form template in InfoJet Service with your application(in debug mode).
|
|