Posted 16 June 2019, 5:24 pm EST
Hello,
Assuming that you are using C1FlexReport, please inform about the use-case based on which you intend to use parameters for displaying page numbers.
The below mentioned code can be used to set calculated page numbers in a TextField, at run-time:
```
TextField tf = new TextField();
tf = (TextField)c1FlexReport1.Fields[“ftrRight”];
tf.Text.Expression= “"Page " & [Page] & " / " & [Pages]”;
Further, values of parameters used in a report can be fetched as follows:
```
c1FlexReport1.Parameters[0].Value = 10;
Console.WriteLine(c1FlexReport1.Parameters[0].Value);
Once a report has finished rendering, you can fetch the pages, as follows:
```
private void c1FlexReport1_EndReport(object sender, EventArgs e)
{
Console.WriteLine(c1FlexReport1.PageCount);
}
Refer the attached application for the implementation.
In case it does not help, please elaborate on the requirement so that I can assist you further.
Regards,
Esha
[zip filename="prj_FlexReport.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-67d70a27-1540-4a49-9268-b86ee6efa6c8.zip[/zip]