I'm using Stimulsoft Reporting for WPF. I have saved a rendered report (in the database in binary format). When I'm loading the report I can view it in Stimulsoft Report Viewer.
I would like to register a new value for a variable (which was already rendered). Is this posible?
If I'm trying with report["variableName"]="xxxxx" it doesn't do anything. If I (re)render the report it becomes blank.
Ideeas ?
How to (re)Render after load for setting new value for a variable
How to (re)Render after load for setting new value for a variable
Hello.
> I'm using Stimulsoft Reporting for WPF. I have saved a rendered report (in the database in binary format). When I'm loading the report I can view it in Stimulsoft Report Viewer.
>
> I would like to register a new value for a variable (which was already rendered). Is this posible?
>
> If I'm trying with report["variableName"]="xxxxx" it doesn't do anything. If I (re)render the report it becomes blank.
>
> Ideeas ?
There are no variables in rendered report. If you want to change variable you can do it in report template and then render the report once again.
You can change only specific text field but it will not change the size of itself.
Thank you.
> I'm using Stimulsoft Reporting for WPF. I have saved a rendered report (in the database in binary format). When I'm loading the report I can view it in Stimulsoft Report Viewer.
>
> I would like to register a new value for a variable (which was already rendered). Is this posible?
>
> If I'm trying with report["variableName"]="xxxxx" it doesn't do anything. If I (re)render the report it becomes blank.
>
> Ideeas ?
There are no variables in rendered report. If you want to change variable you can do it in report template and then render the report once again.
You can change only specific text field but it will not change the size of itself.
Thank you.
How to (re)Render after load for setting new value for a variable
Hello.
You can change only specific text field but it will not change the size of itself.
Thank you.
There are no variables in rendered report. If you want to change variable you can do it in report template and then render the report once again.I'm using Stimulsoft Reporting for WPF. I have saved a rendered report (in the database in binary format). When I'm loading the report I can view it in Stimulsoft Report Viewer.
I would like to register a new value for a variable (which was already rendered). Is this posible?
If I'm trying with report["variableName"]="xxxxx" it doesn't do anything. If I (re)render the report it becomes blank.
Ideeas ?
You can change only specific text field but it will not change the size of itself.
Thank you.
How to (re)Render after load for setting new value for a variable
Do you mean I can change some text fields after the report is rendered ? Can you help me how can I do that ? I need to change only a little text.You can change only specific text field but it will not change the size of itself.
Thanks.
How to (re)Render after load for setting new value for a variable
Hello.
Or you can do it this way
Thank you.
You can get component by name rep.RenderedPages.GetComponentByName(); but it will be the first component of report with such name.djjoyro wrote:Do you mean I can change some text fields after the report is rendered ? Can you help me how can I do that ? I need to change only a little text.
Or you can do it this way
Code: Select all
foreach (StiPage page in rep.RenderedPages)
{
foreach (StiComponent comp in page.Components)
{
if (comp.Name == "Text1")
{
(comp as StiText).Text = "xxxxxxx";
}
}
}