Hello,
I want to read the content of a StiText component from the rendered report.
Here are my codesnippets of my experiments.
Report.RenderWithWpf(false);
foreach (StiPage page in Report.RenderedPages.Items) {
StiText metaText05 = (StiText) page.GetComponents()["Text05"];
StiText metaText06 = (StiText) page.GetComponents()["Text06"];
}
The metaText05.Text.Value and metaText06.Text.Value always are empty.
How do I have to write it so it works properly.
Thank you
Prandl
Reading content of StiText after finished rendering
Reading content of StiText after finished rendering
Last edited by Prandl33 on Thu Nov 17, 2016 6:13 am, edited 1 time in total.
Re: Reading content of StiText after finished rendering
Hello,
I have the solution:
string text = (page.Report.GetComponents()["Text05"] as StiText).Text.Value
Thank you
Prandl
I have the solution:
string text = (page.Report.GetComponents()["Text05"] as StiText).Text.Value
Thank you
Prandl
Re: Reading content of StiText after finished rendering
Dear Prandl,
Thank you for sharing your solution and letting us know about this.
Thank you.
Thank you for sharing your solution and letting us know about this.
Thank you.