• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Crystal reports with visual basic

How can i refresh a crystal report from visual basic. i used a crystal report control and assign the file to it, assign the destination, and show it, but when i use deferent data, the data shown in the report is still the one i use first time, so how can i solve this problem??

Note: the report data is assigned from one table at design time, not from visual basic at run time
0
raqadi
Asked:
raqadi
  • 2
1 Solution
 
Mohammed NasmanSoftware DeveloperCommented:
Hello

  Go to the Crystal report and from the file menu, remove the check from this item "save data with report"

Best regards
Mohammed Nasman
0
 
mdouganCommented:
You can also do this inside of VB by setting the DiscardSavedData property of the control to True:

Report1.DiscardSavedData = True

Before you run the report.
0
 
mdouganCommented:
By the way, what do you mean by "when I use different data" are you passing a different selectionformula or different storedprocparams?
0
 
DanRollinsCommented:
Hi raqadi,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept mnasman's comment(s) as an answer.

raqadi, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now