C # LocalReport change textbox location

How to change the position in LocalReport of any object. Like TextBox or Image and so on. For example, try changing the left coordinate. I tried like this:

ReportParameterCollection reportParameters = new ReportParameterCollection();
reportParameters.Add(new ReportParameter("ReportParameter1", "ValueFromCode"));
report.SetParameters(reportParameters);

but I cannot establish a connection between the ReportParameters parameters and the location of the element.

+4
source share
1 answer

You can use expressions to dynamically assign values ​​to properties. For example, if you open the properties TextBox, go to “Alignment” and then click “Fx”, located to the right of the “Left pad” field, for example, the expression editor will open.

, ReportParameter1. .rdlc Style TextBox:

<PaddingLeft>=Parameters!ReportParameter1.Value</PaddingLeft>

ValueFromCode - 10pt , , :

<PaddingLeft>=Parameters!ReportParameter1.Value &amp; "pt"</PaddingLeft>

, . , , , Top Left TextBox ( ), .rdlc. .

0

All Articles