Page 1 of 1

how to change text value by code in vb

Posted: Thu Sep 17, 2009 5:05 pm
by redahashem
i make report put PageHeader and put text1 on PageHeader an want to change the text1 value
i use this code and give me error

CType(StiReport1.Pages("Page1").Components("Text1"), Stimulsoft.Report.Components.StiText).Text.Value = "micro soft"
-----------------------------------------------------
i want to know how can i call the text or Image or any control puting on PageHeader , PageFooter,ReportTitle and change the values or Image .Image by code


thank u 4 help
:feelgood: :feelgood: :feelgood: :feelgood: :feelgood:

how to change text value by code in vb

Posted: Fri Sep 18, 2009 3:20 pm
by redahashem
pl we need the answer
:feelgood: :feelgood: :feelgood:

how to change text value by code in vb

Posted: Sat Sep 19, 2009 8:58 am
by redahashem
redahashem wrote:i make report put PageHeader and put text1 on PageHeader an want to change the text1 value
i use this code and give me error

CType(StiReport1.Pages("Page1").Components("Text1"), Stimulsoft.Report.Components.StiText).Text.Value = "micro soft"
-----------------------------------------------------
i want to know how can i call the text or Image or any control puting on PageHeader , PageFooter,ReportTitle and change the values or Image .Image by code


thank u 4 help
:feelgood: :feelgood: :feelgood: :feelgood: :feelgood:

how to change text value by code in vb

Posted: Sun Sep 20, 2009 5:02 am
by Jan
Hello,
redahashem wrote:i make report put PageHeader and put text1 on PageHeader an want to change the text1 value
i use this code and give me error

CType(StiReport1.Pages("Page1").Components("Text1"), Stimulsoft.Report.Components.StiText).Text.Value = "micro soft"
-----------------------------------------------------
i want to know how can i call the text or Image or any control puting on PageHeader , PageFooter,ReportTitle and change the values or Image .Image by code
Component Text1 placed on PageHeader band and PageHeader band placed on page. Your code try to get Text1 component from page, but you need get it from PageHeader band. You should call method GetComponents() instead direct accesing to Components collection of page.

Thank you.

how to change text value by code in vb

Posted: Sun Sep 20, 2009 7:09 am
by redahashem
Jan wrote:Hello,
redahashem wrote:i make report put PageHeader and put text1 on PageHeader an want to change the text1 value
i use this code and give me error

CType(StiReport1.Pages("Page1").Components("Text1"), Stimulsoft.Report.Components.StiText).Text.Value = "micro soft"
-----------------------------------------------------
i want to know how can i call the text or Image or any control puting on PageHeader , PageFooter,ReportTitle and change the values or Image .Image by code
Component Text1 placed on PageHeader band and PageHeader band placed on page. Your code try to get Text1 component from page, but you need get it from PageHeader band. You should call method GetComponents() instead direct accesing to Components collection of page.

Thank you.


thank you so much it works well
:biggrin: :biggrin: :biggrin: :biggrin: :biggrin: :biggrin:
:biggrin: :biggrin: :biggrin: :biggrin: :biggrin:
:biggrin: :biggrin: :biggrin: :biggrin:
:biggrin: :biggrin: :biggrin:
:biggrin: :biggrin:
:biggrin:

how to change text value by code in vb

Posted: Tue Sep 22, 2009 1:02 am
by Andrew
Perfect! :biggrin: