|
-
Jan 8th, 2009, 02:50 PM
#1
Thread Starter
Hyperactive Member
Assigning table values at runtime
What I have been doing is setting a parameter to a string value and assigning a textbox to that parameter. As an example:
The text box contains
Code:
=Parameters!prmDates.Value
Code:
Dim paramList As New Generic.List(Of Microsoft.Reporting.WinForms.ReportParameter)
paramList.Add(New Microsoft.Reporting.WinForms.ReportParameter("prmDates", strDates))
Now I would like to put some data in a Table in a similar fashion (where the data is computed at runtime, not stored in a database). All the tutorials seems to force you to setup a query to fill the table. Is there any way to fill it manually, ie. Table1.Row(0).Column(0) = "Hello world" ?
Thanks,
Dave
-
Jan 9th, 2009, 10:55 AM
#2
Re: Assigning table values at runtime
The sample code in the help file shows you how to create a DataTable at runtime.
http://msdn.microsoft.com/en-us/libr...le(VS.80).aspx
-
Jan 9th, 2009, 07:53 PM
#3
Thread Starter
Hyperactive Member
Re: Assigning table values at runtime
Ok, but now that you've created the DataTable, how do you attach it to the Table control on the report? And the report wants you to have attached a table at design time, so how do you do that if the table is not created yet!?
Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|