This is a migrated thread and some comments may be shown as answers.

Creating a report programatically and Details splitting.

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 05 May 2011, 07:16 PM
Hi,

I create a report programatically like this:

Dim report As New myrpt
Dim adapter As New System.Data.SqlClient.SqlDataAdapter(sql, GetConnectionString())
report.DataSource = adapter
Me.ReportViewer1.Report = report
Me.ReportViewer1.RefreshReport()

Then if i set the value of a text box (in the designer) to [=Fields.Data], it will display [=Fields.Data] when I display the report instead of displaying the data from the database.  The connection is correct.  What do i need to do differently?

I figured out why the details were splitting.

Thanks

1 Answer, 1 is accepted

Sort by
0
Mathias
Top achievements
Rank 1
answered on 05 May 2011, 08:25 PM
I solved my problem.. Instead of setting the value to [=Fields.Data] it should be =Fields.Data.  Sigh, noob.
Tags
General Discussions
Asked by
Mathias
Top achievements
Rank 1
Answers by
Mathias
Top achievements
Rank 1
Share this question
or