Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Symptoms When Printing Report 2nd Time
Message
De
20/10/2001 19:19:31
 
 
À
20/10/2001 18:31:00
Jerry Brunet
Brunet Computer Systems
Canfield, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00571375
Message ID:
00571380
Vues:
52
>Hello,
>
> I am not sure if this is a SQL-select problem or a form problem. I have a form based on a view in VFP 6.0, SP5. This view also has several child views and child forms. I have a complex report that I print from the underlying table and child tables, using several layers of SQL-select into temporary cursors, and, finally pulled together with sql-select into a table on the local hard drive, used for printing, and then deleted.
>
> If I add a new record to the form, and also add the required records in the child forms, the report runs fine, AS LONG AS IT IS THE FIRST TIME I HAVE RUN THE REPORT SINCE I OPENED THE PARENT FORM. Once I print the report, if I add another record to the parent and child forms, and save it, the report on the new record will not print. The last step of pulling the temp cursors into the table to print gives me nothing in the table, but the temp cursors are all populated. I can still move to other existing records in the form, and print the report from them just fine. It is only the new record that won't print (and that only if it is the 2nd or later print since the form was opened).
>
> If I close the form, and reopen, then the new record I had added is treated as an existing record and I can print it at will. This problem does not happen with any existing records. I can print as many reports as I want from existing records. It only happens on new records after a report has already been printed since the form was opened.
>
> I have tried everything I can, including requeries, refreshes, etc. Nothing seems to work. Is there anything anyone can suggest?

If you're on a Novell network and using Novell's Client32, disable all caching parameters in Client32's configuration.

You could also try NOFILTER on your SQL-SELECTed cursors, if you're not already.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform