Page 1 of 1

change report title programmatically

Posted: Thu Nov 13, 2014 2:29 pm
by mbrillante
Hi,

I had a 2013 version of stimulsoft.net and in my code I am changing the report title in the code behind (VB.net) as this
CType(Report.Pages("Audit").GetComponents("Txt_Value"), Stimulsoft.Report.Components.StiText).Text.Value = TxtValue

with the latest version 2014.10.24 I get an error cannot convert type string to parameter sticollection

any idea how to programmatically change the report title now ?

Re: change report title programmatically

Posted: Fri Nov 14, 2014 1:26 pm
by Alex K.
Hello,

We couldn't reproduce this bug.
Can you please send us a sample project which reproduce the issue for analysis.

Thank you.

Re: change report title programmatically

Posted: Fri Nov 14, 2014 1:44 pm
by mbrillante
sorry, this is a duplication of http://forum.stimulsoft.com/viewtopic.p ... 641#p75641

the solution is:
'change subtitle text
CType(Report.GetComponentByName("Txt_Value"), StiText).Text.Value = TxtValue

Re: change report title programmatically

Posted: Fri Nov 14, 2014 2:20 pm
by Andrew
Ok, Massimo))