Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing problem - only 1 record is printed in a report?
Message
 
À
12/10/1999 19:29:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00275667
Message ID:
00275675
Vues:
28
Harry,
Glad to hear UT is helping you out. In the present case, be SURE you have SELECTed the temporary file before you call the report. Add a "SELECT MyTempFile" command immediately before the report command.

Is your temporary table buffered? Could that be causing a problem?

If that doesn't work, you might wish to close your temporary file (of delete it if it's a table not a cursor) and create a new one instead of ZAPping it. I don't see why this would make a difference, but if the ZAPping is causing the problem it might help.

Finally, Double check your report data environment. Do you have the DataSession Private? It should NOT be Private. Do you have any tables in your data environment? Code in the Report INIT() that might change matters?

HTH
Barbara

>Dear all,
> First of all I thank all who have given me helping hands before - too many names to mention! I am an amateur programmer without formal training in computer. I managed to finish many projects(of course with your helps!)
> This time I faced with a printing problem with VFP V 6.0:
> 1. I use a command button to print a report.
> 2. Before that I zap a temporary file and append records into it.
> 3. I issue REPORT FORM .... TO PRINTER NOCONSOLE
> 4. Details of the report: the textbox is associated with the fields in the temporary file. No data environment is added to the report.
> 5. This routine works fine for me for a number of projects. It doesn't work this time! Only 1 record is printed!
> I have spent nearly two days attempting to solve this problem. But it failed. Here's the findings:
> 1. The report works well independently - all records are printed.
> It doesn't work within the program.
> 2. After running the program I examine the temporary file - all records are there!
> 3. If I print the report twice in the program the first one out is with 1 record and the second is alright.
> 4. If I insert SET SAFETY ON before ZAP and I select NOT ZAP, the outcome is alright. If I select YES it is not alright.
> 5. If I choose a wrong printer and choose IGNORE the printout is alright.
> 6. I have tried many ways - sometimes work but afterwards fail and there is no consistency.
>
> I have really exhausted all methods I can think of.
>
>******* I look foreward to a helping hand! ********
>
>Thanks in advance.
>
>Harry Mak
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform