we are need to connect cms using below code in C# using COM api and its link is
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/205ace60-6c64-2b10-f593-84945e80a70f?overridelayout=true&32804960208940
we are getting the error in LoginAS method, if i try in Logon method it showing error
which application should be used(Console, windows, Crystalreports)
we are don’t know which assembly reference to be added
please help us fix the below error
using System;
using System.Collections;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Diagnostics;
using Excel = Microsoft.Office.Interop.Excel;
using Designer;
namespace ConsoleApplication2
{
class clsBOUnvManager
{
public static Designer.Application dsApp;
//public static Designer.Object dsobj;
//public static Designer.Universes dsUnvs;
//public static Designer.Universe dsUnv;
//public static Designer.Classes dsclss;
//public static Designer.Class dscls ;
//public static Designer.Tables dsTables;
//public static Hashtable colCls;
//public static Hashtable colTbls;
public static bool DesignerLogin(string strUserName, string strPassword, string strCMSName,string strAuthentication)
{
try
{
//clsBOUnvManager.LoginAs(strUserName, strPassword, strCMSName, strAuthentication);
clsBOUnvManager.dsApp.Visible = false;
clsBOUnvManager.dsApp.Interactive = false;
clsBOUnvManager.dsApp = new Designer.Application();
clsBOUnvManager.LoginAs(strUserName , strPassword, strCMSName, strAuthentication);
return true;
}
catch
{
//throw new System.Exception("Null Reference");
return false;
}
}
static void Main(string[] args)
{
}
}
}
Padmalochini (BOB member since 2013-11-11)