Hi All,
Iam using CrystalReportViewer to display my report. The ReportSource value is assigned during click of a button.
Also iam changing the database at runtime.
for the first click of the button it works properly. but for the second click it gives "Out of Memory".
Its logging on the server properly
also iam attaching the code
Any help will be highly appreciated.
Thanx
Natesh
code :
====================================================
Set crApp = CreateObject("CrystalRuntime.Application"
Set crRep = crApp.OpenReport(App.Path & "\x.rpt"
Set crTable = crRep.Database.Tables.Item(1)
crTable.SetLogOnInfo strServerName, strDatabase, strUID, strPwd
crvReport.ReportSource = crRep
crvReport.ViewReport
====================================================
Iam using CrystalReportViewer to display my report. The ReportSource value is assigned during click of a button.
Also iam changing the database at runtime.
for the first click of the button it works properly. but for the second click it gives "Out of Memory".
Its logging on the server properly
also iam attaching the code
Any help will be highly appreciated.
Thanx
Natesh
code :
====================================================
Set crApp = CreateObject("CrystalRuntime.Application"
Set crRep = crApp.OpenReport(App.Path & "\x.rpt"
Set crTable = crRep.Database.Tables.Item(1)
crTable.SetLogOnInfo strServerName, strDatabase, strUID, strPwd
crvReport.ReportSource = crRep
crvReport.ViewReport
====================================================