Hi,
Would like to know how to specify the CubeSaveDirectory in the c# program. Any help appreciated.
Currently the cube is created in the folder specified in the 'CubeSaveDirectory' variable of 'trnsfrmr.ini' file. But need to retrieve this path (from the database) for the selected '.mdl model file' in the application.
strModelPath = @"C:\Cognos\go_sales.mdl";
try
{
Type typeCognos = Type.GetTypeFromProgID("CognosTransformer.Application");
object objCognos = System.Activator.CreateInstance(typeCognos);
// Create the parameter list
object[] arguments = new object[] { strModelPath };
object[] argumentsMDC = new object[] {};
// Dynamically Invoke the Object
Object objresult = typeCognos.InvokeMember("OpenModel",
BindingFlags.InvokeMethod,null,objCognos,arguments);
Object resultMDC = typeCognos.InvokeMembe("CreateMDCFiles",
BindingFlags.InvokeMethod,null,objresult,argumentsMDC);
thanks
saj
Would like to know how to specify the CubeSaveDirectory in the c# program. Any help appreciated.
Currently the cube is created in the folder specified in the 'CubeSaveDirectory' variable of 'trnsfrmr.ini' file. But need to retrieve this path (from the database) for the selected '.mdl model file' in the application.
strModelPath = @"C:\Cognos\go_sales.mdl";
try
{
Type typeCognos = Type.GetTypeFromProgID("CognosTransformer.Application");
object objCognos = System.Activator.CreateInstance(typeCognos);
// Create the parameter list
object[] arguments = new object[] { strModelPath };
object[] argumentsMDC = new object[] {};
// Dynamically Invoke the Object
Object objresult = typeCognos.InvokeMember("OpenModel",
BindingFlags.InvokeMethod,null,objCognos,arguments);
Object resultMDC = typeCognos.InvokeMembe("CreateMDCFiles",
BindingFlags.InvokeMethod,null,objresult,argumentsMDC);
thanks
saj