//make object in class of crysta report - CrystalReport1 crRpt = new CrystalReport1(); SqlDataAdapter adp_Print = new SqlDataAdapter("select_bill_for_Print", con); DataSet2 ds_Print = new DataSet2(); adp_Print.SelectCommand.CommandType = CommandType.StoredProcedure; adp_Print.SelectCommand.Parameters.AddWithValue("@invoice", Convert.ToInt32(txtinvoice.Text)); adp_Print.Fill(ds_Print, "tbcitymaster,tbcompanymaster,tb_Temp_Bill_for_Print,tb_Temp_Customer_for_Print"); crRpt.SetDataSource(ds_Print.Tables[1]); bill_Preview bill = new bill_Preview(); bill.crystalReportViewer1.ReportSource = crRpt; bill.crystalReportViewer1.Refresh(); bill.Show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)