-
December 15th, 2010, 02:17 AM
#1
Passing Parameters from ASP.NET Application to Crystal Report Application
Passing Parameters from ASP.NET Application to Crystal Report Application
Hello,
if i do not bind to a dataset, i get the passed parameters from .cs, correctly in the report without it asking values.
BUT
if i bind report using dataset, then it shows a form to fill parameter values, even if i set the values in .cs
i dont want the form to be displayed..
please help...
code:
CrystalReport1.Class1Crstal.insert_Selected_Doctor_labels_Reports_Temp(uid, session_id);
OdbcDataAdapter adp = new OdbcDataAdapter();
adp = Class1Crstal.get_CrystalReports_Doctor_labels_Reports(uid, session_id);
DS = new DataSet();
adp.Fill(DS, "Bill_Header_Report_Temp");
rptDoc.Load(Server.MapPath("~/Reports/51_dr list.rpt"));
rptDoc.FileName = Server.MapPath("~/Reports/51_dr list.rpt");
CrystalReportViewer1.Visible = true;
//CrystalReportViewer1.ReportSource = rptDoc;
string categoryID = "SP1";
rptDoc.SetParameterValue("CategoryID", categoryID);
string Line1 = "SP2";
rptDoc.SetParameterValue("Line1", categoryID);
string Line2 = "SPE2";
rptDoc.SetParameterValue("Line2", categoryID);
string Line3 = "SPEC2";
rptDoc.SetParameterValue("Line3", categoryID);
rptDoc.SetDataSource(DS);
CrystalReportViewer1.ReportSource = rptDoc;
Regards
cingo
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|