Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to build a report using Crystal Report in Visual studio 2012.
I created a report using report wizard and I'm loading the report in an asp.net page at page load but the page is blank nothing is being displyed.

Here is my calling:

VB
Dim cryRpt As New ReportDocument
        cryRpt.Load("C:\WebApplicationTestCrystalRepor\WebApplicationTestCrystalRepor\CrystalReport1.rpt")
            CrystalReportViewer1.ReportSource = cryRpt
            CrystalReportViewer1.RefreshReport()


What i am missing?
Posted

1 solution

Hello ,
You have not set the SetDataSource property in your ReportDocument.
First load the Data from Database and set it to ReportDocument.
Refer : Generate a Report using Crystal Reports
thanks
 
Share this answer
 
Comments
TheWebDeveloper 30-May-14 8:52am    
but i;m not using dataset, Im following below article:
http://vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm
Animesh Datta 30-May-14 8:58am    
the above example will get the all data from your Table (inside database) and show it in crystal report . check the table is blank or not.
TheWebDeveloper 31-May-14 3:29am    
Not it is not blank it contain data
Animesh Datta 31-May-14 11:57am    
your following article is perfect, no problem is there , please compare your code with that code , i think there must be something missing. try to debug the code and find the issue .

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