Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: "display string" Post Reply Post New Topic
<< Prev Page  of 2
Author Message
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 26 Jun 2008 at 11:41am
Finally got it working! For some reason, it was adding CR Basic DLLs to my app, even though I had upgraded to CR 2008. But now it's all good and I can look into your questions.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
epaga
Newbie
Newbie


Joined: 18 Jun 2008
Online Status: Offline
Posts: 15
Quote epaga Replybullet Posted: 27 Jun 2008 at 12:04am
Awesome! Clap I look forward to hearing what you find out.

Thanks so much for all your work!

epaga
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 27 Jun 2008 at 12:30am
Good news and bad news. I figured it out, but there is a bug on the property you need. Display String always returns null. The other condtional formulas work (but it is only a limited set), but not Display String. I'm going to email my contact at BOBJ to see if they are aware of this for a future service pack. Here is the code snippet:


ReportObjects myReportObjects;
myReportObjects = rcd.ReportDefController.ReportObjectController.GetAllReportObjects();
ISCRReportObject myObj;
myObj = (ISCRReportObject)myReportObjects[0]; //use whichever object you want
string myFormula;
myFormula = myObj.Format.ConditionFormulas[CrObjectFormatConditionFormulaTypeEnum.crObjectFormatConditionFormulaTypeDisplayString].Text;




Edited by BrianBischof - 27 Jun 2008 at 12:32am
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 27 Jun 2008 at 3:54pm
Here is another update (I've obviously have become obsessed with this question for the past two days). I found that the DisplayText and CSSClass conditional formulas always return null for ISCRFieldObject. However, they work fine for formulas. Interesting.

Now I'm off to see if I can figure out your grouping question.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
epaga
Newbie
Newbie


Joined: 18 Jun 2008
Online Status: Offline
Posts: 15
Quote epaga Replybullet Posted: 03 Jul 2008 at 6:49am
*ping* :)

Any news on the boolean grouping question, or the other questions?

Thanks again!
IP IP Logged
epaga
Newbie
Newbie


Joined: 18 Jun 2008
Online Status: Offline
Posts: 15
Quote epaga Replybullet Posted: 17 Jul 2008 at 11:52pm
*ping* Any news yet? It looks like it's been a while since you've been on the forum so I'd understand if you just don't have the time. Just wanted to check in again to see if anything came out of your looking in to the grouping questions... thanks...
IP IP Logged
<< Prev Page  of 2
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.033 seconds.