Results 1 to 6 of 6

Thread: [RESOLVED] Cant load report to VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    Resolved [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

  2. #2
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    Re: Cant load report to VB

    Do you know where I could find CR9?

  4. #4
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    Re: Cant load report to VB


  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    Re: Cant load report to VB

    are there any legal alternatives?

  6. #6
    Junior Member
    Join Date
    Feb 2006
    Posts
    27

    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
  •  



Click Here to Expand Forum to Full Width