Muhammad Gulfam Muhammad Gulfam - 4 years ago 100
C# Question

Parameters not being passed correctly through code

My report gets data from a stored procedure. Two of the six parameters are dates (toDate and fromDate.) I integrate the report with C# Winforms and I pass the parameters through code the code with:


The report works fine but does not render data despite showing the column header properly. When I refresh the report, it pops up the parameter window again. When I enter the parameters through that window the data shows, including column headers. But it doesn't work when I pass parameters through code.

How can I resolve this?

Answer Source

It looks like this:

CRPT.SetParameterValue("smonth", Servercls.month);

See this link for more info.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download