Click here to Skip to main content
16,012,611 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all I'm a bit of a newbie to ssrs but what I am trying to do is use the selectedrecordindex(s) from a datagridview to create a ssrs report with only the records that were selected. is this even possible?
Thanks
BCB
Posted

a) Create an XML structure from the selected rows in the datagridview. You can derive the tags from your grid columns
b) When building a report - use an XML data source and use a sample XML file like the one above in the connection string to create the layout of the report
b) Whenever you want to generate a report from DataGridview, generate the XML, save the file to a shared directory shared with SSRS
c) Pass the full file path to SSRS as connection string to generate the report.

Hope this helps.
 
Share this answer
 
i created a new data table and used it as the data source for the report.
 
Share this answer
 

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