or
CustomerFactory f = new CustomerFactory(); Telerik.Reporting.ReportParameter param1 = new Telerik.Reporting.ReportParameter(); param1.Name = "CustomerName"; param1.Type = Telerik.Reporting.ReportParameterType.Integer; param1.AllowBlank = false; param1.Text = "FirstName"; param1.Visible = true; param1.MultiValue = true; param1.AvailableValues.DataSource = f.GetCustomerNames(); param1.AvailableValues.ValueMember = "=Fields.CustomerID"; param1.Value = 0; this.ReportParameters.Add(param1); this.DataSource = f.GetManyCustomers(new int[] { Int32.Parse("=Parameters.CustomerName.Value") });namespace TInvoice { using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using Telerik.Reporting; using Telerik.Reporting.Drawing; using System.Collections.Generic; /// <summary> /// Summary description for Invoice. /// </summary> internal partial class Invoice : Telerik.Reporting.Report { const int LINES_PER_PAGE = 17; public Invoice( ) { /// <summary> /// Required for telerik Reporting designer support /// </summary> InitializeComponent( ); // // TODO: Add any constructor code after InitializeComponent call // } internal Invoice( BL_TInvoice bl ) { //int inooflines; InitializeComponent( ); //_bl = bl; //_ilrep = new InvoiceLine( _bl ); //subReport1.ReportSource = _ilrep; //inooflines = _ilrep._bl.listinvlines.Count; //inoofpages = inooflines / LINES_PER_PAGE; //if ( inooflines != inoofpages * LINES_PER_PAGE ) // inoofpages++; //double fnet = 0; //for ( int i = 0; i < inoofpages; i++ ) { // int startindex = i * LINES_PER_PAGE; // int endindex = startindex + 16; // for ( int i1 = startindex; i1 <= endindex; i1++ ) { // if ( i1 < _ilrep._bl.listinvlines.Count ) // fnet += _ilrep._bl.listinvlines[ i1 ].amount; // } // listcf.Add( fnet ); //} }