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!

Inserting Blank Pages after Page Breaks

Status
Not open for further replies.

handleAKA

Programmer
May 4, 2005
5
US
Hi,
How do you insert a blank page after a page break?

"I have a page break after each group section, however the user needs to have an extra blank page after each break"

Thanks
 
Hi

should be able to do it by inserting a frame in groupsection:after and setting this frames pagebreakbefore = true

cheers
Dave
 
Hi and thanks for the help,
I wasnt able to make blank page apear with inserting a frame in groupsection:after and setting this frames pagebreakbefore = true.

However, I did get this to work in one report

1) In the after frame create a 2nd frame with Size of Height = 0" ,Width = 0"

2) Override the finish method of the 2nd content frame:

Sub Finish( )
Super::Finish( )
' Insert your code here
Dim apageno as String
apageno = Getpagelist().getcurrentpage().getpagenumber()

if apageno mod 2 <> 0 then
getpagelist().needheight(9 * 1440) ' this inserts a new page
end if
End Sub


On a different report the above code did not work I was abel to insert a blank page another way
1) In the Before Group Section I set the Frames Page Break Before to True and it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top