Home
  What's News
    InfoJet Service
    InfoJet POM
    Overview
  Code Attributes
  Proxy Classes
  DOM Modification
  How to Use
  Abbreviation Codes
    InfoJet Rules
    InfoJet EditPart
    Evaluate
  Download
  Java
    Buy
  Pricing
  How to Buy
    Support
  Contact Us
InfoJet POM Abbreviation Codes
The abbreviation codes are supported by InfoJet POM also.
Abbreviation Codes Demo
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
    {
        private static FormCode formCode = null; //(1)
        public void InternalStartup()
        {
            formCode = this; //(2)
            EventManager.FormEvents.Loading
                += new LoadingEventHandler(FormEvents_Loading);
        }

        [System.ComponentModel.Description("InfoJet POM, EventType=Loading")] //(3)
        public static void FormEvents_Loading(object sender, LoadingEventArgs e) //(4)
        {
            XmlFormProxy formProxy = XmlFormProxy.Create(formCode, sender, e); //(5)
            formProxy.ShowMessageBox("Loading"); //(6)
        }
}
Notes
(1). Please declare a static variable formCode with the type FormCode.
(2). Assign the current object(this) to the static variable formCode in InternalStartup().
(3). Add InfoJet POM Attributes on the event handler method directly.
(4). Change the event handler method to a static method.
(5). Create the XmlFormProxy instance with the static method XmlFormProxy.Create(), passing the static variable formCode as the first parameter.
(6). Please do NOT use the event handler method's any parameter, use formProxy only.
(7). The abbreviation codes cannot work in InfoPath Forms Services.


Copyright © 2005 - 2012 InfoJetSoft all rights reserved