|
-
Feb 16th, 2006, 07:19 PM
#1
Thread Starter
Junior Member
[RESOLVED] Cant load report to VB
Im using CR11 and VB 2005 Express. Im trying to load a report into the Crystal Report Viewer control. Heres the code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxCRViewer1.ReportSource = "C:\Documents and Settings\user\Local Settings\Application Data\Temporary Projects\WindowsApplication1\customer.rpt"
End Sub
End Class
The error is "Specified cast is not valid". What does this mean?
Thanks
-
Feb 19th, 2006, 10:49 PM
#2
Junior Member
Re: Cant load report to VB
CR 11 (from Business Objects) has some bugs that doesn't make you load the report. I was using CR11 with VS 2003 and the report was designed without error and it always appeared a Runtime error. What did I do? I uninstall CR11, install CR9, open the .rpt designed in CR11, I saved (it seems that changes some internal structure) and re-open the application... the report worked perfectly.
Regards,
Tribo
-
Feb 19th, 2006, 11:45 PM
#3
Thread Starter
Junior Member
Re: Cant load report to VB
Do you know where I could find CR9?
-
Feb 20th, 2006, 02:36 AM
#4
Junior Member
Re: Cant load report to VB
-
Feb 20th, 2006, 06:42 PM
#5
Thread Starter
Junior Member
Re: Cant load report to VB
are there any legal alternatives?
-
Feb 20th, 2006, 09:12 PM
#6
Junior Member
Re: Cant load report to VB
Buy it, or use the mini-CR that comes with VS 2003...
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
|