Results 1 to 1 of 1

Thread: vb and crystal reports 10

  1. #1
    Hyperactive Member
    Join Date
    Oct 10
    Posts
    365

    vb and crystal reports 10

    I am using crystal reports version 10 and vb6 and mysql database

    I am connecting with crystal reports using connectionstring and not odbc.

    I intend to use connectionstring.

    I am using reference crystal reports activex designer run time library 10.0
    and component is crystal activex report viewer library 10.0

    what I do to open rpt report with vb6 is

    1. open database connection
    2. open recordset

    Set crApp = New CRAXDRT.Application
    Set crReport = crApp.OpenReport(App.Path & "\report.rpt")

    crReport.DiscardSavedData
    crReport.Database.SetDataSource rs
    crReport.RecordSelectionFormula = strfilter
    Form2.crviewer.ReportSource = crReport
    Form2.Show
    Form2.WindowState = vbMaximized
    Form2.crviewer.ViewReport

    however, I am getting error attached here.
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •