change report title programmatically

Stimulsoft Reports.NET discussion
Post Reply
mbrillante
Posts: 4
Joined: Thu Nov 13, 2014 2:25 pm

change report title programmatically

Post 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 ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: change report title programmatically

Post 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.
mbrillante
Posts: 4
Joined: Thu Nov 13, 2014 2:25 pm

Re: change report title programmatically

Post 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
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: change report title programmatically

Post by Andrew »

Ok, Massimo))
Post Reply