sorry for the delay
i need to create a report (both summary and detail report) from the list of Selected record.
Let input be, India, USA, UK, and UAE
For single Report:-
if i select one country from the list of records.
Let be "India"
the report should show
1.Summary report and following this
2. Detail Report about India.
Multiple Report at same time:-
if i more than one country from the list of records.
Let it be All records from the list
the report should generate in following structure.
1.1 Summary report of India and following this
1.2. Detail Report about India.
2.1 Summary report of USA and following this
2.2. Detail Report about USA.
3.1 Summary report of UK and following this
3.2. Detail Report about UK.
4.1 Summary report of UAE and following this
4.2. Detail Report about UAE.
i am unable to create report for every country at same time.
due to i am fetching the records of all country from db first and then i am binding it to report viewer.
when i select 3 countries, the report generates 3 times but, for same country, which the record is lastly fetched from db.
this code used to generate Summary Report
BookPASreport Summary = new BookPASreport(response6.Trawageupto, response6.Trawagecurrent, response6.village,response6.Centre,response6.Colldetails,
this code used to generate Detail Report
BookPASreportDetails Detail = new BookPASreportDetails(response6.Trawageupto, response6.Trawagecurrent, response6.village,response6.Centre,response6.Colldetails,
and then i am adding both the records in a book report:-
ReportViewer1.Report = book;
where the mistake is:-
i can understand where the mistake is.
in summary report and detail report both the report obj name is "Summary" and "Detail" respectively
as a result, it holds the record of lastly fetched from DB, and gives N-Number of report but for the lastly fetched records.
i need to change that obj name("Summary" and "Detail") for each country according to the selection, if possible or else i need to find some other solution for that.
if possible share me the ideas, or give me the alternate solution to achieve this target.
thanks in advance