Skip to Content
avatar image
Former Member

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

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;

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers