bool SetPrxStyleSheet(string mon, ItKey tKey)
mon. Moniker of opened regular report instance.
tKey. Key of the repository object that is a styles table.
The SetPrxStyleSheet operation connects a repository styles table to a regular report.
To execute the operation, in the mon field specify moniker of opened regular report instance, and in the tKey field specify key of the repository object that is a styles table. The regular report should be opened for edit. The moniker can be obtained after executing the OpenPrxMeta operation.
The operation results in the logical True if the styles table was connected to the regular report successfully.
Below is the example of connecting an external styles table to a regular report. The request contains moniker of opened regular report instance and repository styles table key. The response contains whether the styles table is connected successfully.
{
"SetPrxStyleSheet" :
{
"mon" : "BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB",
"tKey" :
{
"k" : "317260"
}
}
}
{
"SetPrxStyleSheetResult" : "1"
}
public static bool SetPrxStyleSheet(string moniker, uint tabStyleKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetPrxStyleSheet()
{
tKey = new ItKey() { k = tabStyleKey },
mon = moniker
};
// Connect styles table
var result = somClient.SetPrxStyleSheet(tSet);
return result;
}
See also: