Currently, it does not seem to work.
In designer:
1. I created an Sql Connection
2. I created a new data source from the Sql Connection created in step 1.
3. Then, I dragged the data source on the page. This create a Data Band with all the columns from the table.
In code:
Code: Select all
Dim pReport As New Stimulsoft.Report.StiReport
pReport.Load("C:\myReport.mrt")
'myTable has the same schema (but different data) as the table source created in Step 2
pReport.RegData(myTable)
pReport.Render()
pReport.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, "C:\myPdf.pdf")
myPdf still contains the data created in Step 2 instead of the data in myTable.