Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

ConnectionInfo using 'COM Connectivity' in C#

$
0
0

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 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>