How to send data grid view by parameters in C#?

Stimulsoft Reports.NET discussion
Post Reply
AliBahaari
Posts: 1
Joined: Sat Apr 14, 2018 1:44 pm

How to send data grid view by parameters in C#?

Post by AliBahaari »

Hello, I have data grid view and I want to report for all records in every single distinct page and one dialog. I have written the code below but it shows me StimulSoft dialog per records and don't paginate for me. How can I do that ?

Code: Select all

foreach (DataGridViewRow tableRow in dataTable.Rows)
{
    string ShomareVahed = tableRow.Cells[0].Value.ToString();
    StiReport report = new StiReport();
    report.Load("Report.mrt");
    report.Compile();
    report["ShomareVahed"] = ShomareVahed;
    report.Show();
}
Lech Kulikowski
Posts: 7345
Joined: Tue Mar 20, 2018 5:34 am

Re: How to send data grid view by parameters in C#?

Post by Lech Kulikowski »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Also, please check the following sample:
https://www.stimulsoft.com/en/samples/w ... -from-code

Thank you.
Post Reply