Page 1 of 1

filter class with stimulsoft

Posted: Sat Sep 05, 2015 10:37 am
by arfaie
I designed a report
in this report there's Two types of filters first one for filtering Date via two text box and other one for filtering class type via dropdown. both of them work correctly in stimulsoft designer but dropdown filtering dosen't work in asp.net web page
plz help me
[img]
http://8pic.ir/images/0klmctx0poxzfud6pjy0.png
[/img]

Code: Select all

public partial class Report : System.Web.UI.Page
{
    EsmailEntities db = new EsmailEntities();
    protected void Page_Load(object sender, EventArgs e)
    {
        DrpGrpPro();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        string con = ConfigurationManager.ConnectionStrings["EsmailEntities"].ConnectionString;
        string serverlocation = HttpContext.Current.Server.MapPath(string.Empty);
        StiReport report = new StiReport();
        report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("connection", con));
        report.Load(serverlocation + "\\Reports\\ReportWithFiltermrt.mrt");
        report.Dictionary.Variables["SC"].Value = DropDownList1.SelectedItem.Value;
        report.Dictionary.Variables["FromDate"].Value = txtFromDate.Text;
        report.Dictionary.Variables["ToDate"].Value = txtToData.Text;
    }
    void DrpGrpPro()
    {

        DropDownList1.DataTextField = "ClassName";
        DropDownList1.DataValueField = "ClassId";
        DropDownList1.DataSource = db.TblClass.ToList();
        DropDownList1.DataBind();
        DropDownList1.Items.Insert(0, new ListItem("انتخاب کنید", "0"));


    }
}

Re: filter class with stimulsoft

Posted: Mon Sep 07, 2015 6:11 am
by HighAley
Hello.

Which version of our product do you use?
Please, send us your report template with link on this page to support@stimulsoft.com.

Thank you.

Re: filter class with stimulsoft

Posted: Tue Sep 08, 2015 12:09 pm
by HighAley
Hello.

Which version of our product do you use?
Please, send us more detailed description of the issue with link on this page to support@stimulsoft.com.

Thank you.