[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
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
Re: Cant load report to VB
Do you know where I could find CR9?
Re: Cant load report to VB
Re: Cant load report to VB
are there any legal alternatives?
Re: Cant load report to VB
Buy it, or use the mini-CR that comes with VS 2003...