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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Textbox in SubReport

Status
Not open for further replies.

Gux

Programmer
Oct 17, 2002
25
0
0
BE
I do it without problems using following code in the report

Dim Report As New RepRow()
Dim Text1 As TextObject = Report.ReportDefinition.ReportObjects.Item("tDate")
Text1.Text = "123456"

How must I do to do it to subreport .

Gaëtan
 
Hi,

You can do it the same way as you do it for the report, except that in the case of the subreport, you have to first get the handle to the subreport from the report object. Then write the same code with SubReport instead of Report object.

Cheers,
Techi
 
Thank you, I do it like this and it's ok.

Dim SRObj As SubreportObject = Report.ReportDefinition.ReportObjects.Item("SR1")
Dim SR1 As New ReportDocument()
SR1 = SRObj.OpenSubreport("Sub Report Name")


Gux
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top