I have a project where a report is loaded from string via code vb,
Code: Select all
Dim reporte as New StiReport
reporte.LoadFromString(definition)
Code: Select all
Dim counter as String
reporte.Render(False)
counter = reporte.Dictionary.Variables.Item("counter").Value
'Value of counter is "" but in report code is 415
Code: Select all
Dim empty as Boolean
reporte.Render(False)
empty = reporte.DataSources.Item(0).IsEmpty
'empty is true, but the report contains data :(
Code: Select all
'In report code
Public Sub Informe_BeginRender(ByVal sender As Object, ByVal e As System.EventArgs)
Me.ReportAlias="Test1"
Me.ReportName="Test1"
End Sub
'Then in my code
Dim reporte as New StiReport
reporte.LoadFromString(definition)
reporte.Render(False)
reporte.SavePackedDocument(nameFile)
Code: Select all
<ReportName>Report</ReportName> --> Should be "Test1"
<ReportAlias>Report</ReportAlias> --> Should be "Test1"