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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing standard text on back of report pages-2-sided

Status
Not open for further replies.

jimvank

Technical User
Jun 16, 2006
5
CA
I am looking for a way to have a terms and conditions page print on the back of each page on a 2 sided printer. I've tried many (very many) different combinations to try and accomplish this, but breaks keep happening in unexpected places. Has anyone out there done this before ?

 
There are many posts here on duplex printing--please try a search.

If you still need help, you should then explain your report layout. Specifically, what is on the first and following pages? Is there a page break after a group?

-LB
 
Thank you for your quick response. Sorry I wasn't able to explain myself properly. This is an order acknowledgement, which contains many details. These details may spread from one to many pages, dependent upon the quantity of line items and the comments that go with them. Each acknowledgement page will print the header sections. The totals for the order will print only on the last page.
Because the details can vary to extremes, I cannot predict where a page break will occur.
This seems to be a different problem than others I have seen in this forum.
Because the report works perfectly, all I need is the ability to print a "terms and conditions" statement on every even page.
I hope this is a little more understandable. Thx, jim
 
Yes, there are 4 groups, but if necessary I can scale down to 1
 
To do this, you have to be able to calculate the number of lines per page. This means that sections have to be the same height or at least predictable multiples of a specific height. If there are fields that wrap, you have to be able to count the number of times they wrap by determining their length and dividing by the number of characters per line. The general theory is to create two formulas, one for the page header:

whileprintingrecords;
numbervar cnt := 0;

And for one to be placed in all visible group and detail sections:

//{@cnt}:
whileprintingrecords;
numbervar cnt := cnt + 1;

Then insert an extra "b" section for each visible section. Let's say that 60 lines display per page before inserting these sections. Then you would format each "b" section to suppress with this:

{@cnt} <> 60

The format each higher order section (above the _a sections) to "New page after":

{@cnt} = 0

You would place a copy of your T and C in each of the _b sections, since any one of the sections could end up being in line 60.

If you are unable to count accurately, you probably should entertain placing the T&C only on the last page of a group, which is simpler to do.

-LB
 
Thanks for the advise. I will try this later this evening.

jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top