how to pass parameter in crystal report?
-
i was to use the crystal report dynamically bt have no idea to pass parameter dynamically i connect the table and databse also dynamically bt help anybody plz help me in parameter passing.
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
-
i was to use the crystal report dynamically bt have no idea to pass parameter dynamically i connect the table and databse also dynamically bt help anybody plz help me in parameter passing.
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
Hi! You can use CrystalReport1.DataDefinition.RecordSelection = "Order = ..." to pass parameters you want Hope my help!
It seem to be a solution or an answer.
-
Hi! You can use CrystalReport1.DataDefinition.RecordSelection = "Order = ..." to pass parameters you want Hope my help!
It seem to be a solution or an answer.
plz provide some more code bcoz
StockCrystalReport1.DataDefinition. is not showing RecordSelection StockCrystalReport1.DataDefinition.RecordSelectionFormula =
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
-
plz provide some more code bcoz
StockCrystalReport1.DataDefinition. is not showing RecordSelection StockCrystalReport1.DataDefinition.RecordSelectionFormula =
Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)
I think this code can help you object obj = ""; // Create new instance from Report file CrystalReport1 crystalReportFile = new CrystalReport1(); crystalReportFile.SetDataSource(datasource); crystalReportViewer.ReportSource = crystalReportFile; // Set parameters here . crystalReportFile.SetParameterValue("Name", obj); This is importnat : Always set parameter after binding to datasource and set ReportSource properties
DMASTER