none
RdlGenerator - Adding Filters RRS feed

  • Question

  • First of all, thank you for the excellent examples that you guys provide on gotreportviewer...

     

    I need some help though, if you can spare some time..

     

    The RdlGenerator does not have the functionality enabled to include filters...can you please help me out with the following piece of code....

     

    private List<string> m_Filters;

    public List<string> Filters

    {

    get { return m_Filters; }

    set { m_Filters = value; }

    }

     

            public Rdl.FiltersType CreateFilters()

            {

                Rdl.FiltersType filters = new Rdl.FiltersType();

     

                filters.Filter = new Rdl.FilterType[m_Filters.Count];

                for (int i = 0; i < m_Filters.Count; i++)

                {

                    filters.FilterIdea = CreateFilter(m_FiltersIdea);

                }

     

                return fields;

            }

     

            private Rdl.FilterType CreateFilter(String filterName)

            {

    ?????

            }

    Sunday, May 6, 2007 12:02 PM