Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Page Breaking:

Status
Not open for further replies.

GreatDreamer

Programmer
Feb 11, 2006
15
CA
Conditional Page Breaking:

There is a column in the database (Portfolio), that contains records that have the following values for this column:

Possible values are (Insert, Modify, and Cancel).

I just want to have a conditional page break after Insert and No Page break between Modify or Cancel. I will do grouping on this column and want only a page break to be placed after all the "Insert" records. I am not sure how to proceed with this.
Any help would be appreciated.
 
You can try this:

1. Create a local variable in the group section component to hold the value of Portfolio.

2. Override OnRow() method of the group section and assign the value of Portfolio from the datarow to the local variable created in step (1).

3. Override PageBreakAfter() method of the group section and call the Eject() method of the PageList() component using a condition.

I hope this helps.

-- JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top