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.
{ "GetEaxMd" : { "tEax" : { "id" : "S1!M!S!E1" },
"tArg" : { "pattern" : { "obInst" : "false", "header" : "true", "footer" : "true" } } } }
{ "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 used to extract metadata pattern = new EaxMdPattern() { obInst = false, header = true, footer = true } }, tEax = moniker }; //Get information on header and footer var result = somClient.GetEaxMd(tEaxMd); return result; }
See also: