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:
00769195
Vues:
21
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.
>
>>Kamil,
>>
>>I tryed to reproduce this behaviour, but no luck. What I did was in the existing report I added a field having expression:
>> =strtofile(field1+field2+chr(13)+chr(10),(filename), .t.)
>>
>>Then:
>>repo form... to FILE (filename2) ASCI
>>
>>And I did not see in these two files any differences in the order.
>>
>>It may help me to see what is going on if you send to me the sample of your data and supplementary files (frx/prg).
>>
>>
>>>No, no, Yuri, you've got me wrong.
>>>I have a report each line of it (header, detail, footer) is a function. The function does two things: sends its output as a string to a txt file and returns the same output to the report for printing. Printing is OK. But the lines in the file appear mixed (line which was above in the report desinger appears below in the file). That obviously means that the report (.frx file) has a certain mechanism which regulates the order of the execution of the report records (within .frx). I've tryed changing physical order of records in .frx - no luck. So the question remains - how to control the sequence of execution of report records (in .frx)?
>>>
>>>Hope the explanaition was clear.
>>>Best wishes.
>>>Kamil.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform