Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total Page number? Fail in show _pageno on Maximum Value
Message
From
04/04/1998 21:28:04
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00089164
Message ID:
00089586
Views:
31
>>>>I want to show the Page Header like:
>>>>
>>>>P. 3/10
>>>>
>>>>where 3 is current page and 10 is totalpage
>>>>I divide them into two fields:
>>>>
>>>>'P. ' + alltrim(str(_page_no)) + '/'
>>>>
>>>>and _pageno (With using Maximum value on print!)
>>>>
>>>>of cos, there will be:
>>>>P. 3/ ****** Artrisk means undefine! x_X'
>>>>
>>>>where many spaces....
>>>>of cos got problem on one digit page_no to three digit page_no
>>>>on dividing into two Fields!!
>>>>
>>>>How to fix it?!
>>>
>>>Justok,
>>>Print as one item "P. "+LTRIM(STR(_pageno))+'/'+LTRIM(STR(maxpages)) - maxpages is calculated before printing.
>>
>>Thanks, But fail to make the 'maxpages' in Variable setting....
>>
>>Which function can find the maximum of _pageno ?!
>>
>>of cos, not Max() has two variables... >~<'
>
>I don't think there is a function to find the maximum of _pageno. You would have to calculate this.

okey... would be:

"P. "+LTRIM(STR(_pageno))+'/'+;
LTRIM(STR(CEILING(RECCOUNT()/Num_of_Record_Per_Page)))

But... how to 'know' this magic number?! Because I may change the report
format in the development... Calculate this magic number again!?!

>.<"

Can I got the Page Header, Page footer, and Detail Height from report?!
If so, I make a formula to calculate the Num_of_Record_Per_Page....

Int((WholePageHeight - PageheaderHeight - PagefooterHeight)/DetailHeight)!!

But really donno the height value store in!!

Near got crazy now...
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform