Example #1
0
 public CT_MailMerge()
 {
     this.odsoField = new CT_Odso();
     this.checkErrorsField = new CT_DecimalNumber();
     this.activeRecordField = new CT_DecimalNumber();
     this.viewMergedDataField = new CT_OnOff();
     this.mailAsAttachmentField = new CT_OnOff();
     this.mailSubjectField = new CT_String();
     this.addressFieldNameField = new CT_String();
     this.destinationField = new CT_MailMergeDest();
     this.doNotSuppressBlankLinesField = new CT_OnOff();
     this.headerSourceField = new CT_Rel();
     this.dataSourceField = new CT_Rel();
     this.queryField = new CT_String();
     this.connectStringField = new CT_String();
     this.dataTypeField = new CT_MailMergeDataType();
     this.linkToQueryField = new CT_OnOff();
     this.mainDocumentTypeField = new CT_MailMergeDocType();
 }
Example #2
0
 public static CT_Odso Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Odso ctObj = new CT_Odso();
     ctObj.fieldMapData = new List<CT_OdsoFieldMapData>();
     ctObj.recipientData = new List<CT_Rel>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "udl")
             ctObj.udl = CT_String.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "table")
             ctObj.table = CT_String.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "src")
             ctObj.src = CT_Rel.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "colDelim")
             ctObj.colDelim = CT_DecimalNumber.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "type")
             ctObj.type = CT_MailMergeSourceType.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "fHdr")
             ctObj.fHdr = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "fieldMapData")
             ctObj.fieldMapData.Add(CT_OdsoFieldMapData.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "recipientData")
             ctObj.recipientData.Add(CT_Rel.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }