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 8:33PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.