Results 1 to 5 of 5

Thread: Filter reportviewer

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2008
    Posts
    36

    Unhappy Filter reportviewer

    Hi all,

    How do I Filter a ReportViewer through a Form?

    For example, I would like to choose a Date from a Form and then use this Date to filter the ReportViewer. Do you have any idea?

    Many thanks in advance.

  2. #2
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: Filter reportviewer

    I assume you want to filter the data in the report (and not the report viewer control). The report viewer is a control that hosts the RDL files. RDL files are where we show the data and do all the formatting. In the scenario you've presented it seems passing the variable as a ReportParameter is the best option and then use this parameter in SP to filter out the data.

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2008
    Posts
    36

    Re: Filter reportviewer

    First, thanks for your cooperation.
    I would like to filter by a winform, I have on my report for example:
    Group Date1
    - 100 kms - $$$ (expenses)
    - 120 kms - $$$
    Total: 220 kms - $$$

    Group Date2 - 120 kms - $$$ expenses
    - 200 kms - $$$
    Total: 200 kms - $$$

    I would like to choose by a windows form the Date number, and display it on the report. Is it possible???????

    Best regards in advance.

  4. #4
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: Filter reportviewer

    To display anything on the report you need to pass it to the report as its parameter. If you don't want to do the filtering in SP then you can use the filter feature of the dataset. You might like to start here.

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2008
    Posts
    36

    Re: Filter reportviewer

    Thanks, I´ll try to work on it now...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width