Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't stop printing report~
Message
De
03/01/2000 09:54:46
 
 
À
03/01/2000 09:28:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00311638
Message ID:
00311653
Vues:
19
>i hv to seperate 20 record into 2 and each of the report will print out 10 of it, this part i finish. i call the report twice and do this. but a problems came out that, each time i call the report , the report will start print the first page first, that is correct , but then it will continue to print ...print and print ..non-stop.......
>every time , i need to close the preview , then the next report will come out, but the same problem, printing non-stop, only the first page is correct~!
>what's my problem?!pls give me some hints about this! THX

If you know that you're going to preview, don't use a filter to establish the data set for the report; the use of a FOR clause on the REPORT command line in particular is known to have problems in this situation - the first pass through the data enforces the filter, and the filter is lost when the data is rewound in preparation for a second pass over thesame information.

You'd be better off selecting the data into a cursor and reporting against the cursor, so that you don't need the filtering FOR clause.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform