Getting Header and Footer Parameters

Below is the example of using the GetEaxMd operation to get parameters of express report headers and footers. The request contains moniker of opened express report instance and a pattern, which indicates that it is necessary to get information on header and footer. The response contains header and footer parameters.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetEaxMd xmlns="http://www.fsight.ru/PP.SOM.Som">
<tEax xmlns=" ">
  <id>S1!M!S!E1</id>
  </tEax>
<tArg xmlns=" ">
<pattern>
  <obInst>false</obInst>
  <header>true</header>
  <footer>true</footer>
  </pattern>
  </tArg>
  </GetEaxMd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetEaxMdResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns=" ">
  <id>S1!M!S!E1</id>
  </id>
<meta xmlns=" ">
  <windowsPosition>Maximized</windowsPosition>
<header>
<left>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#000000</textColor>
  <imageAsBackground>0</imageAsBackground>
<imageSize>
  <width>0</width>
  <height>0</height>
  <units>DLU96</units>
  </imageSize>
  </left>
<center>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#000000</textColor>
  <imageAsBackground>0</imageAsBackground>
<imageSize>
  <width>0</width>
  <height>0</height>
  <units>DLU96</units>
  </imageSize>
  </center>
<right>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#000000</textColor>
  <text>&[Picture]</text>
<imageDocument isShortcut="0">
  <i>PP_LOGO</i>
  <n>PP_logo.jpg</n>
  <k>245</k>
  <c>3329</c>
  <p>182</p>
  <h>0</h>
  </imageDocument>
  <imageAsBackground>1</imageAsBackground>
<imageSize>
  <width>14</width>
  <height>5</height>
  <units>DLU96</units>
  </imageSize>
  </right>
<margin>
  <width>-1</width>
  <height>15000</height>
  <units>Mkm</units>
  </margin>
  </header>
<footer>
<left>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#000000</textColor>
  <imageAsBackground>0</imageAsBackground>
<imageSize>
  <width>0</width>
  <height>0</height>
  <units>DLU96</units>
  </imageSize>
  </left>
<center>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#333366</textColor>
  <text>Page &[Page] of &[Pages]</text>
  <imageAsBackground>0</imageAsBackground>
<imageSize>
  <width>0</width>
  <height>0</height>
  <units>DLU96</units>
  </imageSize>
  </center>
<right>
<font>
  <family>Arial</family>
  <style />
<size>
  <width>-1</width>
  <height>10</height>
  <units>DLU96</units>
  </size>
  </font>
  <textColor>#000000</textColor>
  <imageAsBackground>0</imageAsBackground>
<imageSize>
  <width>0</width>
  <height>0</height>
  <units>DLU96</units>
  </imageSize>
  </right>
<margin>
  <width>-1</width>
  <height>15000</height>
  <units>Mkm</units>
  </margin>
  </footer>
  </meta>
  </GetEaxMdResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
 "GetEaxMd" : 
  {
   "tEax" : 
    {
     "id" : "S1!M!S!E1"
    },
   "tArg" : 
    {
     "pattern" : 
      {
       "obInst" : "false",
       "header" : "true",
       "footer" : "true"
      }
    }
  }
}

JSON response:

{
 "GetEaxMdResult" : 
  {
   "id" : 
    {
     "id" : "S1!M!S!E1"
    },
   "meta" : 
    {
     "windowsPosition" : "Maximized",
     "header" : 
      {
       "left" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
            {
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
         "textColor" : "#000000",
         "imageAsBackground" : "0",
         "imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "center" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
            {
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
         "textColor" : "#000000",
         "imageAsBackground" : "0",
         "imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "right" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
            {
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
         "textColor" : "#000000",
         "imageAsBackground" : "0",
         "imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "margin" : 
        {
         "width" : "-1",
         "height" : "10000",
         "units" : "Mkm"
        }
      },
     "footer" : 
      {
       "left" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
{
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
"textColor" : "#000000",
"text" : "Page &[Page] from &[Pages]",
"imageAsBackground" : "0",
"imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "center" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
            {
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
         "textColor" : "#000000",
         "imageAsBackground" : "0",
         "imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "right" : 
        {
         "font" : 
          {
           "family" : "Arial",
           "style" : "",
           "size" : 
            {
             "width" : "-1",
             "height" : "10",
             "units" : "DLU96"
            }
          },
         "textColor" : "#000000",
         "imageAsBackground" : "0",
         "imageSize" : 
          {
           "width" : "0",
           "height" : "0",
           "units" : "DLU96"
          }
        },
       "margin" : 
        {
         "width" : "-1",
         "height" : "10000",
         "units" : "Mkm"
        }
      },
     "hasPivot" : "1"
    }
  }
}
    public static GetEaxMdResult GetPageHeader(EaxId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tEaxMd = new GetEaxMd()
{
tArg = new GetEaxMdArg()
{
//Pattern that will be used to get metadata
pattern = new EaxMdPattern()
{
obInst = false,
header = true,
footer = true
}
},
tEax = moniker
};
//Get information about header and footer
var result = somClient.GetEaxMd(tEaxMd);
return result;
}

See also:

GetEaxMd: Operation