Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Subreport and detail section Post Reply Post New Topic
Author Message
techie3
Newbie
Newbie


Joined: 11 Jan 2007
Location: United States
Online Status: Offline
Posts: 18
Quote techie3 Replybullet Topic: Subreport and detail section
    Posted: 17 Jan 2007 at 2:24pm
I have a subreport that requires subtotals for certain accounts (original amt + income - expense).  I have determined each accounts' subtotals through vb.net and now I want to print this in the details section.  Since this data doesn't reside in a container (ie. table).  I think I need to create a temporary table and link it to the subreport and just have the details print from this table which would be just 2 fields.
 
 
Does this sound right?


Edited by techie3 - 17 Jan 2007 at 2:24pm
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 17 Jan 2007 at 3:06pm
If you are creating the data in VB.NET and then opening the report via code, it is easiest to use formulas. Just create two formulas in your report that return a dummy value. Put those on the report where they are supposed to be. Then when VB.NET creates the report object, override the formula values using the following line of code:

myReportDocument.DataDefinition.FormulaFields("xxx").Text="999"


This overrides the current formula value with the new one.
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
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.031 seconds.