Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class object cannot see private datasession?
Message
De
13/01/2000 17:56:30
 
 
À
13/01/2000 17:42:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00317802
Message ID:
00317979
Vues:
21
>>>Why would the .rptexec() method not see the form's private datasession / data environment?
>>>TIA
>>
>>Objects default to the datasession they were created in. You may need to pass a datasession id to your report object, or just have it always set it's data session to the _SCREEN.ActiveForm.DataSessionID.
>
>How do I pass datasessionID to the report at runtime? I don't want to embed _screen.activeform.datasessionID in the report's data environment if possible.

Well, if you really want to use the form's DE, then you can't use a private datasession in the report. Just turn that off, and make sure the form opens any tables that your report needs.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform