New topic: 

Limit pages returned on Report

<http://forums.realsoftware.com/viewtopic.php?t=38369>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        Joshua Janssen          Post subject: Limit pages returned on 
ReportPosted: Mon Mar 28, 2011 10:49 pm                         
Joined: Tue Jul 27, 2010 7:41 am
Posts: 18                Hi,
I'm printing a report in Realbasic reports, but want to limit the report to one 
page. I've tried using LIMIT in my SQL query, and that limits the results as 
expected, but the report has a varying amount of body items under each group 
header. This means that the report may print 5 group headers in the report, or 
may only print 1, and as the body and group header are different heights, the 
result set can still overflow the page, or may not use all the page.
Is anyone aware of a way to tell the report to print only one page instead of 
simply going onto the next page?
Thanks for your help.
Best regards,   
                             Top                 jefftullin          Post 
subject: Re: Limit pages returned on ReportPosted: Tue Mar 29, 2011 4:01 am     
                            
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2223
Location: England                From your description, probably no.
After all, if the first item has more sub items than will fit on one page, you 
can't limit the report to less than one.

If the report has that much data to show, throwing away all but the first page 
sounds odd to me.
Are you trying to give the user an 'idea' of what the report looks like?

If so, why not assemble a set of 'demonstration' data that fills the page 
nicely, and use that instead of real data in these circumstances?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to