Set Text Of Crystal Report TextObject

  • Thread starter Thread starter Matt Theule
  • Start date Start date
M

Matt Theule

Visual Studio 2002, Crystal Reports.NET

I am unable to set the text of a text object in a crystal reports
report. I have found lots of examples for doing this, and what I have
does not throw any errors or warnings, but in my displayed report, the
textobject in question is not being changed.
Code:
crReport1 Rpt = new crReport1 ();
TextObject to =
(TextObject) Rpt.ReportDefinition.
Sections["ReportHeader"].ReportObjects["txtRHTitle"];
to.Text = "New Text";

Changing other aspects of the textobject work as expected:
to.Border.BackgroundColor = System.Drawing.Color.AliceBlue;
to.Border.HasDropShadow = true;
to.Border.TopLineStyle = CrystalDecisions.Shared.LineStyle.DoubleLine;

Only the text of the textobject does not change.

Any ideas? Thanks

MATT
Please reply to group, email is not valid.
 
Back
Top