Basing the report output of the current record on the data contents of the previous record...

Stimulsoft Reports.NET discussion
Post Reply
J_T_E
Posts: 2
Joined: Fri Apr 08, 2011 11:15 am

Basing the report output of the current record on the data contents of the previous record...

Post by J_T_E »

I've created a "labeling" report. When a record (row) within the data source has an entry in a particular column (we'll call it "My_Column") then the next record (row) within the data source needs to have a comment (we'll call it "Hello"). I had the following code written within Crystal Reports before making the switch to Stimulsoft and it worked like a charm. However, I don't know enough about vb.net to figure out how to write equivalent code within the stimulsoft report. Any help would be appreciated. Thanks.

If PreviousValue ({Datasource.My Column}) " " Then
Formula = "Hello" Else
Formula = ""
End If
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Basing the report output of the current record on the data contents of the previous record...

Post by Alex K. »

Hello,

As a way, you can use variables.
Please see the sample report in attachment.

Thank you.
Attachments
910.SampleReport.mrt
(21.83 KiB) Downloaded 147 times
Post Reply