Results 1 to 2 of 2

Thread: Crystal Report XI & VB60

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    1

    Crystal Report XI & VB60

    Hello.

    I have a little problem with Crystal Report XI and VB60.
    I've just read every post in the forum about crystal report but I didn't find the solution...

    ----------------------------------------------------------------

    I use this code:

    Private Sub CmdStampa_Click()

    With CrystalReport1

    .ReportFileName = App.Path & "\Report.rpt"
    .SelectionFormula = "{REQUEST.NUMBER}=" & Trim(DataGrid1.Columns(0)
    .Action = 1

    End With

    Ens Sub

    --------------------------------------------------------

    When Debug arrive at ".Action = 1" the Error say : "Runtime Error '20525' Unable to Load Report."

    What's the Problem?

    Another thing:

    I'm using a Report that use a DSN connection. How can I give by code the DSN Name, User and Password?

    Thank you

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Crystal Report XI & VB60

    The posted code says that You are using Crystal Reports OCX control, as far as I know, the Crystal Reports XI doesn't support OCX (it is used in version 8.5 and lower)

    Probably You have installed 2 versions of Crystal Reports in Your pc

    To use version XI search about Crystal Reports XI RDC & VB6

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