当前位置: 代码迷 >> SharePoint >> 代码解决方法
  详细解决方案

代码解决方法

热度:200   发布时间:2016-05-02 07:24:53.0
代码
using Microsoft.Office.InfoPath;
using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using mshtml;
//using System.Xml.Linq;
//using Microsoft.Office.Interop.InfoPath;
using Microsoft.Office.Interop.InfoPath.SemiTrust;
namespace 模板6
{
   // public class thisXDocument : XDocument
    //{ 
    //}
    public partial class FormCode
    {
        // 启用浏览器功能的表单不支持成员变量。
        // 请使用代码从 FormState 词典
        // 写入和读取这些值,如下所示:
        //
        // private object _memberVariable
        // {
        //     get
        //     {
        //         return FormState["_memberVariable"];
        //     }
        //     set
        //     {
        //         FormState["_memberVariable"] = value;
        //     }
        // }

        // 注意: 以下是 Microsoft Office InfoPath 所需的过程。
        // 可以使用 Microsoft Office InfoPath 对其进行修改。
        public void InternalStartup()
        {
            EventManager.FormEvents.Loading += new LoadingEventHandler(FormEvents_Loading);
            //public interface XDocument;
            //XDocument thisXdocument=
        }

        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            // 在此处编写代码。
            string oldCommand;
            string whereClause;
           
            XDocument thisXDocument = new XDocument();
            IXMLDOMNode queryFieldNode;
            IXMLDOMNode curQueryFieldAttribute;
            IXMLDOMNamedNodeMap queryFieldAttributes;
            ADOAdapter adapter = (ADOAdapter)thisXDocument.QueryAdapter;
  相关解决方案