Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportViewer in VB.NET 2013

Status
Not open for further replies.

Andrzejek

Programmer
Jan 10, 2006
8,548
US
I have a form (frmReport_100_14) where I have a ReportViewer control (repview_100_14) and a dataset (dst100_14), BindigSource (TAB_100_14BindingSource), and a TableAdapter (TAB_100_14TableAdapter) to create a simple report. All of these pieces are set up to connect to my Oracle data base and I can see my basic report setup on rdlc file (rep_100_14.rdlc).

I did add a text box onto the rep_100_14.rdlc file (TextBox15) and typed some text into it (although this text does not show in any of the text box’s properties, I don’t even see the Text property of this TextBox15). All of that display my report OK, but I would like to populate the text in TextBox15 dynamically from code instead of having it hard-coded.

How can I refer to this text box from my code, and where would I do it in the code?

I guess this is the code that starts my report
Code:
Public Class frmReport_100_14

    Private Sub frmReport_100_14_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.TAB_100_14TableAdapter.Fill(Me.dst100_14.TAB_100_14)
        Me.repview_100_14.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout)
        Me.repview_100_14.RefreshReport()
    End Sub

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top