Skip to content

Commit 15cfe59

Browse files
Modified the code snippet
1 parent 04101c5 commit 15cfe59

File tree

1 file changed

+1
-1
lines changed
  • Mail-Merge/Skip-range-of-records/Skip-range-of-records

1 file changed

+1
-1
lines changed

Mail-Merge/Skip-range-of-records/Skip-range-of-records/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void SkipRangeOfRecords(object sender, MergeFieldEventArgs args)
2727
{
2828
// Check if the current row index is between 3 and 9.
2929
// If so, set the field text to an empty string, effectively skipping those records.
30-
if (args.RowIndex < 10 && args.RowIndex > 2)
30+
if (args.RowIndex > 2 && args.RowIndex < 7)
3131
args.Text = string.Empty;
3232
}
3333

0 commit comments

Comments
 (0)