FastReport Query Parameter

edited August 11 in FastReport .NET

Hi, I hope you can help me. I need to assign a value to a parameter in FastReport. But this value can change. For example:


string x = ((String)Report.GetColumnValue("SQL")); 


if(x== 1)

{

Report.SetParameterValue("@Parameter",x);  

    txtCom.Text = ((String)Report.GetColumnValue("SQLTABLE.NAME"))

}

if(x==2)

{

Report.SetParameterValue("@Parameter",x);  

    txtCom.Text = ((String)Report.GetColumnValue("SQLTABLE.NAME"))

}


My problem is that it only runs the first time

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.