Results 1 to 4 of 4

Thread: VB6.0 and Crystal Report9

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    4

    Lightbulb VB6.0 and Crystal Report9

    Hi Guys,



    Can any one tell me how to call a report build in crystal Report9 from VB6.0


    thnxs in Advacned,

    Regards,

    Paul.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6.0 and Crystal Report9

    Thread moved from the FAQ forum.

  3. #3
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: VB6.0 and Crystal Report9

    I have this in the General section
    Code:
    Dim crxApplication As New CRAXDRT.Application
    Public Report As CRAXDRT.Report
    Dim crxDatabaseTable As CRAXDRT.DatabaseTable
    I use this to call the report
    Code:
    Set Report = crxApplication.OpenReport("Z:\DAD\JobsUnder4K.rpt", 1)
    For Each crxDatabaseTable In Report.Database.Tables
        crxDatabaseTable.ConnectionProperties("user id") = "sa"
        crxDatabaseTable.ConnectionProperties("Password") = myPasswordTechniSQL
    Next crxDatabaseTable
    Report.PaperOrientation = crDefaultPaperOrientation
    Report.PrintOut False
    as an example.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    4

    Re: VB6.0 and Crystal Report9

    thnxs Pasvorto for giving ur inputs..

    I found the solution and the one is similar to what u have mentioned...

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