c# Pass parameter value

Hi, I have a problem to pass value. I have already read the documentation. But I did not solve this problem.

My database is mysql, and it is sql query
SELECT Q.name, Q.surname FROM `table1` Q where Q.id = @id

This is parameter properties

                report1.Load("C:/Users/Administrator/Desktop/20.01.2015 - Demo v1.20/rfcontrol/rfcontrol/reports/table1.frx");
                report1.SetParameterValue("id", textBox.Text);
                report1.Show();

What is my mistake? I have made efforts for 3 days but not any result > Please help me

Comments

  • edited August 2015
    Hi,
    DataType of 'id' in Fast-Report-Designer is Int32, but DataType of 'textBox.Text' ist string.



    But: my problem ist, that the parameter-passing does'nt work, even though the data-types are matching. [img]style_emoticons/<#EMO_DIR#>/mad.gif" style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif" /> Sloving the problem: The paramter has to be passed as type[/img]Object....

Leave a Comment