Click here to Skip to main content
15,901,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
crystal reports not working after deployment show empty page. code behind side working fine(report).
Posted

1 solution

have you tried verifying the database?
 
Share this answer
 
Comments
expert-programmer 9-Nov-13 4:17am    
Ya I think you are right.check database and rebuilding can solve this.
kalaiselvansurya 9-Nov-13 5:58am    
My Codeing Working in Running time but not work after deployment copy i instaled crystal report v 13. one person tell me u instal netget after working fine but still same problem.
Dim con As New ConnectionInfo
Dim con1 As New ConnectionInfo
Dim db1 As Database
Dim dbs As Tables
Dim db As Table
Dim tab As TableLogOnInfo
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
With con
.UserID = "sa"
.Password = "sa"
.DatabaseName = "TASHEEL"
.ServerName = "Admin-PC"
End With
rpt.Load(Server.MapPath("..\Report\COVER_FEES.rpt"))
db1 = rpt.Database
dbs = db1.Tables
For Each db In dbs
tab = db.LogOnInfo
tab.ConnectionInfo = con
db.ApplyLogOnInfo(tab)
Next
CrystalReportViewer1.SelectionFormula = str
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.ShowFirstPage()
CrystalReportViewer1.RefreshReport()
'rpt.ExportToDisk(ExportFormatType.PortableDocFormat, pdfFile)
kalaiselvansurya 9-Nov-13 5:57am    
My Codeing Working in Running time but not work after deployment copy i instaled crystal report v 13. one person tell me u instal netget after working fine but still same problem.
Dim con As New ConnectionInfo
Dim con1 As New ConnectionInfo
Dim db1 As Database
Dim dbs As Tables
Dim db As Table
Dim tab As TableLogOnInfo
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
With con
.UserID = "sa"
.Password = "sa"
.DatabaseName = "TASHEEL"
.ServerName = "Admin-PC"
End With
rpt.Load(Server.MapPath("..\Report\COVER_FEES.rpt"))
db1 = rpt.Database
dbs = db1.Tables
For Each db In dbs
tab = db.LogOnInfo
tab.ConnectionInfo = con
db.ApplyLogOnInfo(tab)
Next
CrystalReportViewer1.SelectionFormula = str
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.ShowFirstPage()
CrystalReportViewer1.RefreshReport()
'rpt.ExportToDisk(ExportFormatType.PortableDocFormat, pdfFile)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900