I'm using stimulsoft 2024.1.3 with NET 4.7
I've created a report with a title band (ReportTitleBand1) then save it as compiled dll (Report1.dll)
then from cod I've added a StiText:
Code: Select all
Dim wRp = StiReport.GetReportFromAssembly("d:\NET4\Report1.dll")
Dim tx = New StiText(New RectangleD(0, 0, 5, 0.5))
tx.Text = "My text"
tx.HorAlignment = StiTextHorAlignment.Center
tx.Name = "HeaderText"
tx.Brush = New StiSolidBrush(Color.LightGreen)
DirectCast(wRp.GetComponents("ReportTitleBand1"), StiReportTitleBand).Components.Add(tx)
wRp.Render()
wRp.Show()
what I'm doing wrong?
thanks