Quantcast
Viewing all articles
Browse latest Browse all 3636

ConnectionInfo using 'COM Connectivity' in C#

I need to connect to a DLL using 'COM Connectivity" and a function to provide data for my crystal report in c#,

 

I have one report that gets populated via a database:

 

// DATABASE via ODBC-DSN

TableLogOnInfo tblLoginInfo = tbl.LogOnInfo;

tblLoginInfo.ConnectionInfo.ServerName = dsn;

blLoginInfo.ConnectionInfo.UserID = username;

tblLoginInfo.ConnectionInfo.Password = pw;

tbl.ApplyLogOnInfo(tblLoginInfo);

tbl.Location = db + "." + tbl.Name;

// this works great

 

 

 

I have another crystal report that is populated by COM Connectivity

 

// COM

TableLogOnInfo tblLoginInfo = tbl.LogOnInfo;

tblLoginInfo.ConnectionInfo.ServerName = "myclassname";

tblLoginInfo.ConnectionInfo.Type = ConnectionInfoType.CRQE;

// tbl.Location = ??

// this doesn't work. The report generated is empty/corrupted, but it gives no error

 

Thank you for your help,

Tammy


Viewing all articles
Browse latest Browse all 3636

Trending Articles