Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-page Report
Message
From
21/08/1998 14:39:31
 
 
To
20/08/1998 15:19:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00128150
Message ID:
00128870
Views:
18
>>I have a report that deals with a single record. I want it to be a two page report, but _I_ want to say where the page break is. A few questions:
>>
>>Is there a better way to handle a report that is a single record report (and pre-processed data in memvars) ?
>>
>>How can I force a Page break?
>>
>>Any way I can control the print driver in code (I want to select duplexing, if it is an option) ?
>
>You may try to call a function which will return an empty string, but force eject:
>
>Function EjectIf
>lparam pcCondition
>if eval(pcCondition)
> eject
>endif
>return ""
>
>I'm not sure your report will reprint the header, though. Haven't tried this for a long time.

I don't know if that will work. In older (2.6 and before) if you did an eject in a user defined function, the report still had it's own internal counters for lines on a page, etc. This caused problems like getting only partial pages later on in the report, when the counters determined there should be an eject. AFAIK, there's no way to access those internal report counters. It may work OK in VFP 5.0, though, I haven't tried anything like that lately.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform