Topic: Crystal Report DataSet at runtime Posted: 01 Sep 2009 at 11:07pm
hi,
i am creating a dataset from different tables data at
runtime. and i want to set this to my crystal report, but it is not
working properly. i am posting my code, please go through it.
strSQL = "SQL Query String to Select data from different tables using InnerJoin " SQLCNN = "my data connection string"
Dim cmd As New SqlCommand(strSQL, SQLCNN) Dim DA As New SqlDataAdapter(cmd) Dim DS As New DataSet
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 02 Sep 2009 at 10:55am
I don't know, can you set the datasource in an OLE DB connection? I would think that you would call a stored proc using OLE DB...at least that is the only way that I have used it.
In my VB.net code i am using ADO.net for connection. My real problem is, if am selecting data for the report from one table only, then the above code will work, if it is more than one table report is showing the records that is showing at the time of creating the table. So i specified the table names in "setdatasource" method then then issue is - records are duplicating.... what can be the reason? Please help me....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum