Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sequence of execution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00768002
Message ID:
00769593
Vues:
23
Good time of day, Yuri.
The problem in question has nothing to do with the order of the cursor.
Detail band processes only one record at a time and the mix happens within the detail band.
Never mind though.
I've tryed again to change the phisical order of .frx records and this time it worked. Most probably first time i've unsuccessfully tryed it i used SCATTER TO/GATHER FROM instead of SCATTER TO ... MEMO/GATHER FROM ... MEMO.
Best wishes.
Kamil

>Kamil,
>
>AFAIK, report is based on the information in the current cursor or table and it follows the record order there.
>Thus I still believe, that you need to control the order in the cursor where report is sitting while printing instead of trying to control the sequence by external commands.
>
>>Thank you, Yuri, for your enduring interest.
>>
>>Let's consider the detail band.
>>Lines of the band look like this:
>>DualOut('Line1') - the function sends 'Line1' to file and returns 'Line1' to the report for printing
>>DualOut('Line2')
>>DualOut('Line3')
>>After initial entering these fields in the report designer everything is ok, file looks like this:
>>Line1
>>Line2
>>Line3
>>
>>Then i open the report designer and completely REMOVE DualOut('Line2') and after that put in its place a different line so the detail band looks like this:
>>DualOut('Line1')
>>DualOut('Different line')
>>DualOut('Line3')
>>
>>Printout is fine but the file contains:
>>Line1
>>Line3
>>Different line
>>
>>Based on this i infer that the DualOut('Line1/3') are executed by the report before DualOut('Different line').
>>Phisically DualOut('Different line') appears after DualOut('Line1/3') in the .frx but even if i squeeze DualOut('Different line') between DualOut('Line1/3') the resulting file does not change for the better.
>>
>>So if there is anything in the .frx that controlls the flow of execution within the report its got to be some .frx column. I didn't want to conduct trial and error experiments hoping that somebody would tell me on the fly what column it is and how to change it properly.
>>Best wishes.
>>Kamil.
>>
A moment of silence is our cosmic reset button.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform