passing parameter from winform to report filters

Is there anyway to do that?

I read all forums posts and user/dev manual.

var r = new Report();
r.load("report.frx");
r.SetParameterValue("somedate", "2014-01-01, 00:00:00");

if I show the parameter on a report it works.

if I try to filter the data band with it :

[Sales.date] == [somedate] -> it doesnt work/apply the filter.

Comments

  • Magezi SagesseMagezi Sagesse DRCONGO
    edited 7:41PM
    william32 wrote: »
    Is there anyway to do that?

    I read all forums posts and user/dev manual.

    var r = new Report();
    r.load("report.frx");
    r.SetParameterValue("somedate", "2014-01-01, 00:00:00");

    if I show the parameter on a report it works.

    if I try to filter the data band with it :

    [Sales.date] == [somedate] -> it doesnt work/apply the filter.

    What do you mean by showing the parametre on a report?

    can show how you do it?

Leave a Comment