Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Produits tierce partie
Mark,
>>>Why my report does not refresh data on every print?
>>>Thanks Mark
>>
>>You have to explicitly tell Crystal to do this. I'm using the CRPE. This line refreshes the data:
>>
>>loReport.DiscardSavedData()
>Will try, but this thing even does not refresh data when I go to preview in CR itself unless I say "refresh you ...."
>Mark
CR will load the data when needed, when all data is loaded, the datasource is closed (you now can open the datasource exclusively). CR holds all data into memory. CR by itself does not refresh whenever something changes in the datasource. I've never needed the functionality to refresh my report programaticly, so i'm not sure how to solve your problem. Maybe reset the location of the tables would help: "oReport.Database.Tables.item[nI].location = cLocation"
But it still begs the question: why dou you want to re-read the tables ?
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement