예제 #1
0
 /// <summary>
 /// Add the IRMark to the file and return it to the calling app
 /// </summary>
 /// <param name="FileName"></param>
 /// <returns></returns>
 public string AddIRMark(ref string DocumentXml, int SubmissionType)
 {
     try
     {
         // Add in the IRMark
         // and return the IRMark as a string value)
         if (DocumentXml != null && DocumentXml != "")
         {
             if (SubmissionType < namespaces.Length && SubmissionType >= 0)
             {
                 string mark = IRMark32.AddIRMark(ref DocumentXml, namespaces[SubmissionType]);
                 return(mark);
             }
             else
             {
                 return("Not a valid submission type");
             }
         }
         else
         {
             return("No IRmark was generated");
         }
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
예제 #2
0
 /// <summary>
 /// Add the IRMark to the file and return it to the calling app, Overloaded method to allow the passing in
 /// if the document type namespace directly.
 /// </summary>
 /// <param name="DocumentXml">A string representation of the whole document containing the Document type
 /// specified in the namespace paramter that requires the generation of the IR Mark</param>
 /// <param name="Namespace" > Namespace of the document type that requires the IR Mark</param>
 /// <returns></returns>
 public string AddIRMark(ref string DocumentXml, string Namespace)
 {
     try
     {
         if (DocumentXml != null && DocumentXml != "")
         {
             string mark = IRMark32.AddIRMark(ref DocumentXml, Namespace);
             return(mark);
         }
         else
         {
             return("No IRmark was generated");
         }
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }