Below is the example of using the GetEaxMd operation to get formatting styles defined for various table elements. The request contains moniker of opened express report instance and the pattern indicating whether style parameters for all the elements must be obtained. The response contains formatting styles parameters.
{ "GetEaxMd" : { "tEax" : { "id" : "S1!M!S!E1" }, "tArg" : { "pattern" : { "obInst" : "false", "gridStyle" : { "parts" : { "it" : [ "FixedCorner", "TopHeader", "LeftHeader" ] }, "ops" : { "it" : { "Key" : "InternalFormatConditions", "Value" : "Get" } } } } } } }
{ "GetEaxMdResult" : { "id" : { "id" : "S1!M!S!E1" }, "meta" : { "grid" : { "style" : { "fixedCorner" : { "Text" : { "@VA" : "1", "@HA" : "-1", "@M" : "7.56 5.67 7.56 5.67", "@WW" : "1" }, "NumberFormat" : { "@F" : "", "@FT" : "0" }, "Font" : { "@A" : "0", "@B" : "true", "@S" : "9", "@C" : "#000000", "@F" : "Calibri" }, "Borders" : "", "Hyperlink" : "" }, "topHeader" : { "Text" : { "@VA" : "1", "@HA" : "2", "@M" : "7.56 5.67 7.56 5.67", "@WW" : "1" }, "NumberFormat" : { "@F" : "", "@FT" : "0" }, "Font" : { "@A" : "0", "@B" : "true", "@S" : "9", "@C" : "#000000", "@F" : "Calibri" }, "Borders" : "", "Hyperlink" : "" }, "leftHeader" : { "Text" : { "@VA" : "1", "@HA" : "1", "@M" : "7.56 5.67 7.56 5.67", "@WW" : "1" }, "NumberFormat" : { "@F" : "", "@FT" : "0" }, "Font" : { "@A" : "0", "@B" : "true", "@S" : "9", "@C" : "#000000", "@F" : "Calibri" }, "Borders" : "", "Hyperlink" : "" }, "internalFormatConditions" : "" } }, "windowsPosition" : "Maximized", "hasPivot" : "1" } } }
public static EaxGridStyle GetEaxGridStyle(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,
gridStyle = new EaxGridStylePattern()
{
parts = new EaxGridStylePart[]
{
EaxGridStylePart.FixedCorner,
EaxGridStylePart.TopHeader,
EaxGridStylePart.LeftHeader
},
ops = new EaxGridStylePartListOpsIT[]
{
new EaxGridStylePartListOpsIT() { Key = EaxGridStylePart.InternalFormatConditions, Value = ListOperation.Get },
}
}
}
},
tEax = moniker
};
//Get information about styles of various table elements
var result = somClient.GetEaxMd(tEaxMd);
return result.meta.grid.style;
}
See also: