Click here to Skip to main content
16,018,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i had crystal report 8.5 and i used used crytal report button to open crystal report.
the coding which i used was as below

CrystalReport1.ReportFileName = App.Path & "Path"
CrystalReport1.RetrieveDataFiles
Set CrystalReport1.DataSource = QNrs
CrystalReport1.Action = 1

but after i change to crystal report 11 its giving me errors on this coding. i have added the references and components to CR11.

i dont want the report to open with in vb by using CrystalActiveXReportViewer. any ideas how to open it like i used when using CR8.5.

i want to use crystal report controller so that the report wont open in a form.

What I have tried:

i used crystalactivexreportviewer and am able to veiw it using it but since its opening in a vb form it looks very odd.
Posted
Updated 21-Sep-21 16:27pm
v6
Comments
Richard Deeming 21-Sep-21 10:05am    
If you want someone to help you fix an error, you need to tell us what the error(s) are. Click the green "Improve question" link and update your question to include the full details of the errors, and remember to indicate which line of code they relate to.

NB: VB6 has been "dead" for two decades now. You'll probably struggle to find anyone who is still using it.
Member 15329613 21-Sep-21 10:26am    
What is the error?
Pulith Jayasuriya 21-Sep-21 11:55am    
error 20525 on run time
Member 15329613 21-Sep-21 13:21pm    
On which line of code?
Pulith Jayasuriya 21-Sep-21 13:57pm    
CrystalReport1.RetrieveDataFiles

You should post the question at Error 20525 | SAP Community[^].
 
Share this answer
 
I have spent many hours on Crystal.
I have found newer versions of reports will run with older libraries of Crystal.

I suggest creating a new Crystal Report with v11.
Make sure you can access the data w the new report prior to attempting any access via automation.
Replace your old rpt w the new v11 rpt and try it; making backups so can go back.

Good Luck!
 
Share this answer
 
Comments
Pulith Jayasuriya 21-Sep-21 22:13pm    
hi, i tired it but i am yet getting the same error "run time error '20525' unable to load report"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900