|
-
Oct 7th, 2008, 07:52 AM
#1
Thread Starter
Lively Member
[RESOLVED] Clearing Crystal Report Form?
Hello:
I am using Crystal Report 9, I have a Tab control where one of the tabs is for Reports. Here is my problem. When I goto the Report tabs and generate a report (Which all works fine) and then move to another tab and then come back to the report tab the LAST Report is still displayed. I want it so that the crviewer91 is blank just like when I start the program. There is no DATA save with the report.
Any Ideas?
Thanks
-
Oct 10th, 2008, 10:31 AM
#2
Re: [RESOLVED] Clearing Crystal Report Form?
This thread is marked resolved, but with no posted resolution.
Did you solve the problem yourself?
If so, please post what you did as it might help others with the same or similiar problem.
Thanks.
-
Oct 10th, 2008, 12:45 PM
#3
Thread Starter
Lively Member
Re: [RESOLVED] Clearing Crystal Report Form?
I am sorry that I did not post what I did. I will try to explain!
Please Note:This may not have been the correct way, but I could not figure out any other solution.
I use the sstab control and I have setup one of the Tabs as a report Tab. So when I would goto the Report Tab and select my Report Paramenters and generate a report everything works just fine. (But here is the problem) Now if I move to another tab and then move back to the Report Tab, the last report generated would still be displayed. I wanted some way to atleast have the report data cleared(set back to blank(Empty Report)). So this is what I put in the case select of all of the tabs except for the Report Tab.
I created another Report.Recordselectionformula= " to something that you know will not return any data" (But it has to be data that the report is looking for) other wise you will get an ERROR.
and then do CRviewer91.refresh this will cause the report to display the new data(which equals nothing)
So now everytime I generate a report and leave that tab and come back to it I have a BLANK REPORT DISPLAYED. Which is what I wanted.
I hope this helps, Once again I am sorry for not posting what I did to resolve.
-
Oct 10th, 2008, 01:39 PM
#4
Re: [RESOLVED] Clearing Crystal Report Form?
Thanks for coming back and posting your solution.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|