Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplex printing
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00512139
Message ID:
00513029
Views:
13
Just another suggestion for you.. but I have NO idea if it would work

Try putting a UDF at the end of the page which changes the report table to give you the second page.
The idea I have in my head is something along the lines of :

Create your 2 reports seperatley
Use report1.frx
Replace all user with 'Page1'
Append from report2.frx
Replace all user with 'Page2' For empty(user)
use
Then call the following func from the report.
*********************
Function ReportSwitch
*********************
Set Deleted off
* Need to save work areas and record positions etc
Select 0
Use report1.frx again  &&Eeeek will this work?

If user = 'Page1' And Deleted()
Delete for user = 'Page2'
Recall for user = 'Page1'
Else
Delete for user = 'Page1'
Recall for user = 'Page2'
Endif
Set deleted on
Maybe you can't use the "user" field - maybe "comment"
Need to look at John's article to find out this kind of thing.

As I say.. I have never tried anything like this but this may give you some ideas...

HTH

Will


>Very messy for sure. These are printed forms. There are many lines (not data but drawn lines), very small print, tons of verbage, little boxes that are checked from data, on and on. With this not being a standard report with a header and detail where the detail section is virtually blank except for the report data, I don't think PrintWhen is going to work here. You'd never be able to change the definition without having to try and wade through all the rest of the mess. Thanks for the suggestion though!!!
>
>Steve
>
>>Hi!
>>
>>Make it as a single layout by just a copying of all controls from second layout to first layout. However, for all controls on the first page put the PrintWhen... condtition to print them only on the first page, for controls from second layout put a condition to print only on the second page. Quite messy, but it will print in a single pass, so I guess it could be done that way.
>>
>>HTH.
>>
>>>Anyone ever get a report to print duplex with two different report definitions?
>>>Page 1 has a definition and I'd love to get the backside to print in one pass also. Currently, I have two report definitions, one for the front side and one for the back. Users have to print the front from the tray and then flip over the paper and load to the manual tray. Would love to end this.
>>>
>>>Thanks,
>>>Steve
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform