Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to stuff a page break in a string
Message
 
 
To
28/07/2000 08:17:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00397368
Message ID:
00398128
Views:
15
Hi Isaac,

Yesterday on the way home I was thinking about this problem and it seems to me, that I found a solution (of course, I have to try it first to be sure).
In the group footer if it ends on odd page I will call a function: InsertBlankPages. I will modify the structure of underlying table to add one additional field NewPage C(1). The function could be like this:
********************************************************************
*  Description.......: InsertBlankPages for MTD Report
*  Calling Samples...: 
*  Parameter List....: 
*  Created by........: Nadya Nosonovsky 07/28/2000 09:41:29 AM 
*  Modified by.......: 
********************************************************************
local lnRecno, lcAlias
lnRecno=recno() && Save current record position
lcAlias=alias()
if indexseek(town+'N',.f.,lcAlias,'TownPage')
   && record was already inserted, do nothing
else   
   && This means, that the table should be used exclusively, but it's ok
   append blank
   replace county with county, town with town, NewPage with 'N'
   go lnRecno
endif
I will create a new group Town+NewPage, which will start on the new page.
Therefore, this report should be run twice.
This is just an idea, I have to test it. What do you think?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform