Click here to Skip to main content
15,917,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How Can Print all Data In dataGridView1
By This Code




for (int y = 0; y < dataGridView1.Rows.Count - 0; y++)
{
}



try
{
Reports.ReportDeliveryReceipt_NoteHeadTBL reportcustomer = new Reports.ReportDeliveryReceipt_NoteHeadTBL();
reportcustomer.SetDatabaseLogon("pc1", "12", "Server", "MnStores", false);

Reports.FormReport fmct = new Reports.FormReport();
fmct.crystalReportViewer1.ReportSource = reportcustomer;
fmct.ShowDialog();
}
catch { }
Posted

1 solution

There are some tutorials that will help you -
DataGridView to Crystal Report in C#[^]
Winform DataGridView Crystal Report [^]
 
Share this answer
 
Comments
Member 11280947 28-Apr-15 8:15am    
but the Data evry time Will Change

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900