Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports 8.5 in VB 6
Message
From
15/02/2003 09:31:46
 
 
To
14/02/2003 23:48:37
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00753628
Message ID:
00753689
Views:
20
There are a couple of things you can do. Open the report in the Crystal designer and turn off "Save Data with Report".

I would also use code during runtime to do the same thing, just in case you forgot during design or someone else designs a report. Here's some sample VFP code from the article on my website.
LOCAL oCR AS CRAXDRT.Application
LOCAL oRpt AS CRAXDRT.Report

oCR = CREATEOBJECT(“CrystalRuntime.Application”)
oRpt = oCR.OpenReport(“C:\Temp\Taz.RPT”)
IF oRpt.HasSavedData
  oRpt.DiscardSavedData()
ENDIF
oRpt.PrintOut()
>Hi All!
>
>I've created a simple Cheque Register report using CR 8.5 and now I'm trying to run the report from my VB6 program. I have a form that gets the company number and date from the user. My problem is that I have a problem filtering the report with these values! When I run the report is show me the original contents of the CR file when I created it! I studied the sample programs that come with CR 8.5 and tryied to apply it. However, I still get the same results!
>
>Does anyone have an idea of how I can solve this problem? By the way, I am using MS SQL 8 as my database server.
>
>Thanx in advance!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform