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!

Error Conditional Page Break On Grouping

Status
Not open for further replies.

GreatDreamer

Programmer
Feb 11, 2006
15
CA
I am calling EjectPage() from Group section when the gsTradeStatusVal = "Trade Insert", but I am getting an error as follows:

NewReportApp::gsTradeStatus%PageBreakAfter(9): Invalid procedure reference. - (EjectPage)
1 Semantic Error(s) found

Does anyone know what might be the cause. Thank You Very Much for your help.
Here is the modification I made to the PageBreakAfter() in Group section:

Function PageBreakAfter( ) As Boolean
PageBreakAfter = False
'PageBreakBefore = False
If gsTradeStatusVal = "Trade Insert" Then
'PageBreakAfter= True
'PageBreakBefore= True
'Super::AcPageList::EjectPage()
'Super::MxBlankReportSimplePageList::EjectPage()
NewReportApp::MxBlankReportSimplePageList::EjectPage()
End If

PageBreakAfter = Super::pageBreakAfter( )
' Insert your code here
End Function
 
I just tried this and it worked OK. Caused the page to throw. PageBreakAfter() is in a group section.
Milt.

===========

Function PageBreakAfter( ) As Boolean
PageBreakAfter = Super::pageBreakAfter( )


Dim a As AcPageLIst

Set a = GetPageList()

a.EjectPage()

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top