In a web application...
i am really new to crystal reports so i might be missing out on something..so please let me know where i'm going wrong.
what i need is to build a dynamic query and display the details using crystal reports.
So what i did is created my sp 'SP_EXAMPLE1' in my database
@sql='SELECT * FROM '+@tableName+'
exec(@sql)
then in crystal under database expect i added my stored procedure.
option 2
i also tried to do it programmically
so i create a dataset DS with the data
then
mReportDocument.Load(Server.MapPath("Reports/testing.rpt"));
myReportDocument.SetDataSource(DS);
CrystalReportViewer.ReportSource = myReportDocument;
CrystalReportViewer.DataBind();
but still no joy