|
|
||||||
|
#1
|
|
|
|
|
Hi,
Which is the best way to bind DataTable to a Crystal Report in Winforms application. I am using a stored procedure to get the dataset. But I could'nt find a proper documentation for how to bind the DataTable or DataSet to a Crystal Report. Any suggestions.. Rgds Shibu |
|
|
|
#2
|
|
|
|
|
There are two ways to get data into Crystal Report.NET: PULL and PUSH. What
you want is PUSH. That is, prepare you data in DataSet/DataTable, and push it into report when the report is loaded. Look for ReportDocument.Database.Tables.Item("tablename").S etDataSource() method. "ShiTvm" <shibusv> wrote in message news:2364 [..] |
|
#3
|
|
|
|
|
Create a Typed DataSet from the "Add New Item > DataSet and give the dataset
a useful name. In Server Explorer, drag a view with the fields you want in the report onto the dataSet. Create a new Crystal Report using the Wizard. From the Report Gallery, choose "Standard" and click 'OK' In the 'Data' tab, click the node for "More Data Sources" Click the node for ADO .Net (XML) Check the box for 'Use Visual Studio Data Class' In the 'Visual Studio Data Class name' combobox, select the name of the dataset you just created. click 'Finish' Choose the table displaying under the name of the dataset you just added to the 'Data' tab and click 'Insert Table' Format your report. When you go to display it, use the code below as an example. Vince Dalton Dim rpt As New rptCompany_Addresses Dim dsCompany_Addresses As New dsCompany_Addresses Me.conORA.ConnectionString = ConnectionParams.oraDB daCompany_Addresses.Fill(dsCompany_Addresses, "COMPANY_ADDRESSES") rpt.SetDataSource(dsCompany_Addresses) crptViewer.ReportSource = rpt "ShiTvm" <shibusv> wrote in message news:2364 [..] |
|
|
| Similar Threads | |
| Data binding a Crystal report to an object in a web app Hello, We want to use Crystal Reports to print a page with customer info. However, we cannot connect a new report to our object! We have looked at the samples and done the... |
|
| Can DataSet or DataTable be the "DataSource" of crystal report? I program using ADO.NET and plan to generate a crystal report. Can DataSet or DataTable be the "DataSource" for a crystal report (just like DataGridView) which simplify... |
|
| Crystal Report Data Binding problem HI, I have a problem in Crystal Report with VS.NET 2003. I am adding data to the report at design time. The problem is that I have 2 databases. First I ran report with First... |
|
| Crystal Report binding with Dataview for runtime sorting Hi, I am trying to sort the data in my crystal report at runtime. The problem is that i can only query the database once and that is at the loading of the report. At that... |
|
| ADO Recordset binding to a crystal report at runtime I don't know if all C++ users are as frustrated as I am by the inexistent documentation of CR for C++, but I'm trying to use the equivalent of... |
|
|
All times are GMT. The time now is 05:05 AM. | Privacy Policy
|