|
-
Mar 13th, 2009, 04:55 PM
#1
Thread Starter
New Member
VB6 and CrystalReport 9
[Currently]
vb6 and CR9 are working w/o a problem and I am able to generate a report.
[Required Update]
I need to add a column to the existing report. When saving the new report, I get a msg indicating:
* This report was saved in a previous version of CR using an older report file folder.
* Saving the report now will cause the report to be upgraded to a new file format and my not be compatible with previous version of CR.
I saved the changes (therefore upgraded). Now, when running the code and trying to generate the report, I get an error msg:
* Run-Time Error 20525 / Unable to load report.
Any suggestions in how to fix this....? I googled and found similar cases, tried fixing it and still, cannot get it to work...
PLEASE HELP . . . . .
-
Mar 13th, 2009, 05:18 PM
#2
Re: VB6 and CrystalReport 9

I moved your thread to here.
-
Mar 13th, 2009, 08:46 PM
#3
Re: VB6 and CrystalReport 9
I think that Your reports were created with an older version than CR 9
If You have access to source code, please post the lines of code where You call a rpt file
-
Mar 14th, 2009, 11:56 PM
#4
Thread Starter
New Member
Re: VB6 and CrystalReport 9
This is the code:
Private Sub mnuProgressReport_Click()
Set oReport = CreateObject("Crystal.CrystalReport")
With oReport
.DataFiles(0) = MsSQLDB.Name
.ReportFileName = ReportsDir & "rptProgress.rpt"
.Destination = crptToWindow
.Action = 1
End With
End Sub
-
Mar 15th, 2009, 02:01 PM
#5
Re: VB6 and CrystalReport 9
As I already posted, Your .rpt files where created with a Crystal Reports version 8.5 or older and You are calling these .rpt using the Crystl32.OCX control embedded in your forms.
This technology (Crystl32.OCX) is supported by Crystal Reports until version 8.5 and from version 9 to 11 You could use RDC and Crystal Reports viewer.ocx to process Your .rpt files
Solution to Your problem :
1.- Get a Crystal Reports version 8.5 to edit Your .rpt files
or
2.- Keep Crystal Reports version 9, upgrade Your .rpt files and modify every single procedure where You call a .rpt file
-
Mar 20th, 2009, 09:47 AM
#6
Thread Starter
New Member
Re: VB6 and CrystalReport 9
Thank so much for taking the time. Looking for the older version did help.
Thanks again... !!!
-
Mar 20th, 2009, 10:23 AM
#7
Re: VB6 and CrystalReport 9
Now that we've helped you, you can help us by marking the thread as resolved. If you have JavaScript enabled you can do that easily by pulling down the Thread Tools menu and selecting the Mark Thread Resolved item. Also if someone has been particularly helpful you have the ability to affect their forum "reputation" by rating their post. Only those ratings that you give after you have 20 posts will actually count, but in all cases the person you rate will see it and know that you appreciate their help.
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
|