Last post May 09, 2016 02:45 AM by oned_gk
May 06, 2016 01:07 PM|mitchpetel|LINK
I have a VS 2013 VB Web Forms project using the Crystalreportviewer control. I use the control to call crystal.rpt files. If I call a .rpt file that doesn't have any parameters, the report runs and displays the data no problem. If I call a .rpt file that
does have parameters, the report appears to run, I don't get prompted for parameters, and the control/report comes up blank. What am I doing wrong ???
Here's my code.
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server" EnableCaching="false"></CR:CrystalReportSource>
VB Code Behind
strReport = "C:\MyLocalPath\PeteTestReport.rpt"
CrystalReportViewer1.ReportSource = strReport
Note: I have already copied the 'crystalreportviews13' folder from C:\inetpub\wwwroot\asp_client folder to my application folder to fix the infamous BOBJ script error.
May 09, 2016 02:06 AM|Candice Zhou|LINK
If you want to pass parameter to crystal report, you could refer to the below code:
ReportDocument reportDocument = new ReportDocument();
For more information about passing parameter to the CrystalReportSource, please see:
May 09, 2016 02:45 AM|oned_gk|LINK
Maybe you have set the parameters values already or it has default value