?
Solved

Crystal reports with visual basic

Posted on 2002-03-22
4
Medium Priority
?
223 Views
Last Modified: 2013-11-25
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
Comment
Question by:raqadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 600 total points
ID: 6889344
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
 
LVL 18

Expert Comment

by:mdougan
ID: 6889364
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
 
LVL 18

Expert Comment

by:mdougan
ID: 6889370
By the way, what do you mean by "when I use different data" are you passing a different selectionformula or different storedprocparams?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7634270
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question