Skip to Content
avatar image
Former Member

how to pass parameter values from c# to crystal report located in CMC SAP

string username = "admin";
string password = "admin123";
string cmc = "";
string serverUrl = "";
string auth_type = "Enterprise";

string token; string tokenEncoded;

int reportid = 16029;

SessionMgr session_mgr = new SessionMgr();
EnterpriseSession session = session_mgr.Logon(username, password, cmc, auth_type);

token = session.LogonTokenMgr.CreateLogonTokenEx("", 120, 100);
tokenEncoded = HttpUtility.UrlEncode(token,System.Text.Encoding.UTF8);

string url = string.Format("http://{0}/BOE/CrystalReports/viewrpt.cwr?id={1}≈stoken={2}&@GeneralTawheed_id={3}&@UserId={4}", serverUrl, reportid, tokenEncoded,"732", "112");


I have the above lines of code but while loading report, it again asks for Parameter values. kindly tell me what to do ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers