Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Dynamic TextObject.text with formula Post Reply Post New Topic
Author Message
Pink
Newbie
Newbie


Joined: 25 Sep 2009
Online Status: Offline
Posts: 10
Quote Pink Replybullet Topic: Dynamic TextObject.text with formula
    Posted: 23 Apr 2010 at 7:53am
Hi,
I need to send in code the texts of static textobject.  I've done it with :

        CType(CrystalReportItem("Text141"), CrystalDecisions.CrystalReports.Engine.TextObject).Text = "Test"

My probleme is when the textobject also contain dynamic value such as GroupName ({DataTable1.Quart})

        CType(CrystalReportItem("Text141"), CrystalDecisions.CrystalReports.Engine.TextObject).Text = "Quart : GroupName ({DataTable1.Quart})"

I tried as above but crystal dont reconise the formula and print it as text...

Thanks
Pink







IP IP Logged
Pink
Newbie
Newbie


Joined: 25 Sep 2009
Online Status: Offline
Posts: 10
Quote Pink Replybullet Posted: 23 Apr 2010 at 8:42am
I tried doing it with a formula (crystal report encyclopedia vol.2 page 330) and it works fine but I cant create formula(or it has to be done dynamically) and the field i need to change is a textObject(CrystalReportItem("Text141"))...
I did'nt find a way to pass the result of the formula to it...

There might be a hint in that direction(or not) to solving my problem but I'm still missing some things...

Help please!!!
Pink
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.032 seconds.