Dim i As New Int32 Dim rpt As New CrystalReport7() i = 0 rpt.SetDataSource(DataSet31) For i = 0 To Me.DataGridView1.SelectedRows.Count print.CrystalReportViewer1.SelectionFormula = String.Format("{{me.Table_1.id}} = '{i}'", Me.DataGridView1.SelectedCells(i).Value) Next print.CrystalReportViewer1.ReportSource = rpt print.Show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)