Skip to Content

I have created a dataset from c# and want to populate crystal report with ONLY that dataset

Nov 04, 2016 at 06:27 PM


avatar image
Former Member

I verify that my dataset, ds, has the correct records generated from sql select. I connect dataset to report as below but when I run the report I get more records than is in dataset, not the records just in the dataset. How to make my report just display what is in the dataset?

my dataset has the correct records that I need generated by my sql select inquiry.

I set the source as below.

ReportDocument myReportDocument; myReportDocument = new ReportDocument();

myReportDocument.Load(@"p:\c# programs\invoiceadjustments\invoiceadjustments\adjustedinvoice.rpt");

myReportDocument.SetDataSource(ds.Tables[0]); crystal_InvViewer.ShowCloseButton = true;

crystal_InvViewer.ReportSource = myReportDocument; crystal_InvViewer.DisplayToolbar = true;

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers