Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a datasource for a report at runtime?

I have a form on my screen with a reportviewer control. I want to create a report, but since my dataset/datatable is defined within my program and not with a wizard, my dataset doesn't appear as a choice when trying to define a new report on the reportviewer.

So, my question is, "How can I use my 'internally described' dataset as the datasource for the .rdlc/reportviewer control?"

Thanks for any advice and help.

Also, before anyone asks, the dataset is filled with data from within the program, so it is not databound to any outside datasource. I basically have a dataset with data in it and I want it to appear on the reportviewer.

Thanks, again!

like image 557
Kevin Avatar asked Jul 26 '26 22:07

Kevin


1 Answers

This was exactly what I was looking for here:

Setting the datasource for a Report at runtime

Hopefully, this will help someone else.

like image 159
Kevin Avatar answered Jul 29 '26 12:07

Kevin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!