Home > Archive > Visual Basic Crystal Reports > January 2006 > Text Object
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| How to reach (and modify), by vb.net code, text property of a text object
placed on a CR embedded ?
With the code:
Dim RPT As New rptTest:
RPT.PageHeaderSection1.ReportObjects.Item("txtTextObj1").[..]
i can reach only .left, width, .border, ecc, properties...and no Text
property
Can someone help me please ?
| |
| Richard Dudley 2005-12-02, 9:36 pm |
| Instead of using a text object, use a Parameter. They can be placed on your
report and formatted as if they were text objects.
"Teus" <teus@tiscali.it> wrote in message
news:uWxz3Qa9FHA.1148@tk2msftngp13.phx.gbl...
> How to reach (and modify), by vb.net code, text property of a text object
> placed on a CR embedded ?
>
> With the code:
> Dim RPT As New rptTest:
> RPT.PageHeaderSection1.ReportObjects.Item("txtTextObj1").[..]
>
> i can reach only .left, width, .border, ecc, properties...and no Text
> property
>
>
>
> Can someone help me please ?
>
>
>
>
| |
|
|
"Richard Dudley" <rjdudley@gmail.com> ha scritto nel messaggio
news:Otb7KXc9FHA.2176@TK2MSFTNGP14.phx.gbl...
> Instead of using a text object, use a Parameter. They can be placed on
> your
> report and formatted as if they were text objects.
mmm, very very interesting....
A little sintax example ? (vb mode please)
| |
| John Mishefske 2005-12-02, 9:36 pm |
| Teus wrote:
> How to reach (and modify), by vb.net code, text property of a text object
> placed on a CR embedded ?
>
> With the code:
> Dim RPT As New rptTest:
> RPT.PageHeaderSection1.ReportObjects.Item("txtTextObj1").[..]
>
> i can reach only .left, width, .border, ecc, properties...and no Text
> property
>
>
>
> Can someone help me please ?
Use the .SetText() method.
--
'---------------
'John Mishefske
'---------------
| |
| Richard Dudley 2005-12-02, 9:36 pm |
| Plenty of examples in Google, but here's one I use:
http://aspadvice.com/blogs/rjdudley...02/21/2554.aspx
"Teus" <teus@tiscali.it> wrote in message
news:%23xyGsvc9FHA.1276@TK2MSFTNGP09.phx.gbl...
>
> "Richard Dudley" <rjdudley@gmail.com> ha scritto nel messaggio
> news:Otb7KXc9FHA.2176@TK2MSFTNGP14.phx.gbl...
>
> mmm, very very interesting....
> A little sintax example ? (vb mode please)
>
>
| |
| wsmerek_MCAD 2005-12-02, 9:36 pm |
| Hey Teus -
The wizards are making fun of you. I think the topic is in the VS Help, but
here's how I implemented it:
rptCalendarW .SetDataSource(dsDisplayCalendar)
CrystalReportViewer1.ReportSource = rptCalendarW
' Display "W of" date right in report title by remote control!
Dim T7 As CrystalDecisions.CrystalReports.Engine.TextObject
T7 = rptCalendarW .ReportDefinition.ReportObjects.Item("Text7")
T7.Text = "Travel / Absence Schedule - W of " & myW OfDate
You need to instantiate the text object then assign it to your report text
item. Then you simply assign the text. This method is also used for other
"Dymanic" report features, like changing the group by field with a field
definition object. Have fun, and try using the help.
"Teus" wrote:
> How to reach (and modify), by vb.net code, text property of a text object
> placed on a CR embedded ?
>
> With the code:
> Dim RPT As New rptTest:
> RPT.PageHeaderSection1.ReportObjects.Item("txtTextObj1").[..]
>
> i can reach only .left, width, .border, ecc, properties...and no Text
> property
>
>
>
> Can someone help me please ?
>
>
>
>
>
| |
|
|
Thxxxxxxx...to everyone !!!! :-))
| |
|
|
|
|
|