bwgc Posted May 21, 2003 Posted May 21, 2003 Trying to get Crystal Reports to work with Windows forms with a dataset. Here's my form_load event: sqlDataAdapter1.Fill(dataSet11); //Pass the dataset to the report rpt11.Database.Tables[0].SetDataSource(dataSet11.Tables[0]); crvMain.ReportSource = rpt11; //Confirm that I have some data... MessageBox.Show(dataSet11.Tables[0].Rows[0][1].ToString()); ...I get a report with headings, but no data. Anybody??? Quote
hog Posted May 22, 2003 Posted May 22, 2003 I dont do it the way you have? But this works for me: Dim myReport As ReportClass myReport = New repWhatEverReport() myReport.SetDataSource(m_WhatEverDataSet) Me.CrystalReportViewer1.ReportSource =myReport Quote My website
bwgc Posted May 22, 2003 Author Posted May 22, 2003 Actually both methodologies work. The problem was in my report - I had changed datasources and the detail line has disappeared. But thanks - now I have an alternative! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.