Diplaying data on a report
-
How can you use textbox values on a form to populate a vb report? The textbox values are not bound to a database.
dptalt wrote:
How can you use textbox values on a form to populate a vb report?
Do you mean a Reporting Services report? You can pass values from text boxes as paramters to an RS report.
-
dptalt wrote:
How can you use textbox values on a form to populate a vb report?
Do you mean a Reporting Services report? You can pass values from text boxes as paramters to an RS report.
-
A simple way to do this would be to make these textbox values parameters to your report and report viewer will display texboxes for the user to provide values. There are heaps of examples using report viewer at: http://www.gotreportviewer.com/[^] If you don't want to do it this way I would suggest you look up some help on using parameters with reports. There are some decent examples for using rdlc on MSDN.
-
A simple way to do this would be to make these textbox values parameters to your report and report viewer will display texboxes for the user to provide values. There are heaps of examples using report viewer at: http://www.gotreportviewer.com/[^] If you don't want to do it this way I would suggest you look up some help on using parameters with reports. There are some decent examples for using rdlc on MSDN.
Thanks for the info, that website is a good one. For the solution to my problem: I found code on how to set the datasource of a rdlc report in code. In my application I'm using an SDK to query quickbooks for information that is return in a datatable. I can set the report datasource in code to this datatable and the report prints. Thanks for your help!