can i pass Parameter into SQL base Report in demo version?
Posted: Tue Sep 04, 2012 9:31 am
Hello all
i am using demo version
i am trying to pass parameter from C# code into my report sql parameter
i declared the parameter in the query in the report , this is my query in my stimulsoft report:
SELECT *
FROM ViewEmpDep
WHERE ViewEmpDep.CatID = {param1}
and i declared the veriable for that parameter in my report.
In the C# this is my code:
StiReport report = new StiReport();
report.LoadFromString(a);
report.Render();
report["param1"] = 2;
i am using fx viewer, the report display but with no result alghouth i pass (2) to the report and there are results for this number in my data base .
is that becuase i am using demo version or there is another reason?
thanks
i am using demo version
i am trying to pass parameter from C# code into my report sql parameter
i declared the parameter in the query in the report , this is my query in my stimulsoft report:
SELECT *
FROM ViewEmpDep
WHERE ViewEmpDep.CatID = {param1}
and i declared the veriable for that parameter in my report.
In the C# this is my code:
StiReport report = new StiReport();
report.LoadFromString(a);
report.Render();
report["param1"] = 2;
i am using fx viewer, the report display but with no result alghouth i pass (2) to the report and there are results for this number in my data base .
is that becuase i am using demo version or there is another reason?
thanks