This is part of the code used to render to the report.
Code: Select all
Dim path As String = Server.MapPath("LicensePermitsBatchRPT.mrt")
report.Load(path)
report.Dictionary.Variables("PrintDate").RequestFromUser = True
Dim strConn As String = ConfigurationManager.ConnectionStrings("AGED").ConnectionString
'Used to set connection string.
report.Dictionary.Databases.Clear()
report.Dictionary.Databases.Add(New Stimulsoft.Report.Dictionary.StiSqlDatabase("MS SQL", strConn))