I am having problem using VB .NET to create multiple databases and datatables, so that the end-user will see a report with databases and datatables already filled in. (all they will need to do is to drag in the datafields)
I am not sure what is the syntax and have tried report.regdata, but it doesn't seem to work.
I have got so far
Code: Select all
Dim newR As New StiReport
Dim newDatabase As New Dictionary.StiSqlDatabase("Demo", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Stimulsoft\StimulReport.Net Demo\Bin\NWIND.MDB;Persist Security Info=False")
newR.Dictionary.Databases.Add(newDatabase)
Dim newDatabase2 As New Dictionary.StiSqlDatabase("New", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Stimulsoft\StimulReport.Net Demo\Bin\NWIND.MDB;Persist Security Info=False")
newR.Dictionary.Databases.Add(newDatabase2)
newR.Design()
Would anyone please help me on this?
thanks