Results 1 to 3 of 3

Thread: Assigning table values at runtime

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2004
    Posts
    263

    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

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2004
    Posts
    263

    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
  •  



Click Here to Expand Forum to Full Width