Results 1 to 3 of 3

Thread: Not all records displayed on CR9.2

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Not all records displayed on CR9.2

    Hello All
    I don't understand why not all records displayed on my CR (CR 9.2 + VB6) ..
    I have to click "refresh" button to display all of them..
    please advise ..what I missed?

    thanks & regards



    Option Explicit
    Dim ConnInfo As CRAXDRT.ConnectionProperties
    Dim CRReport As New CRAXDRT.Report
    Dim CRApp As CRAXDDRT.Application


    Private Sub LoadReport()
    On Local Error GoTo errhand
    Dim ConnInfo As CRAXDRT.ConnectionProperties
    Dim CRReport As New CRAXDRT.Report
    Dim CRApp As CRAXDDRT.Application

    Dim mReport As String, mSQLString As String, mReportComments As String, mGroupTree As Boolean

    mReport = ClsCReport.CReport
    mSQLString = ClsCReport.SQLString
    mReportComments = ClsCReport.ReportComments
    mGroupTree = ClsCReport.GroupTree

    Set CRApp = New CRAXDDRT.Application
    Set CRReport = CRApp.OpenReport(mreport)
    CRReport.ReportComments = mReportComments

    Set ConnInfo = CRReport.Database.Tables(1).ConnectionProperties
    CRReport.Database.Tables(1).DllName = CR_DLLNAME
    ConnInfo.DeleteAll
    ConnInfo.Add "Database Name", CR_REPORTDB
    ConnInfo.Add "Database Password", CR_REPORTDBPASS

    CRReport.SQLQueryString = mSQLString
    CRViewer91.ReportSource = CRReport

    CRViewer91.ViewReport

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Not all records displayed on CR9.2

    try adding
    Code:
    me.CRViewer9.Refresh
    just before
    Code:
    me.CRViewer9.ViewReport

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Not all records displayed on CR9.2

    Crystal has an option called "Save Data With Report", which by default is on and when on the report must be Refreshed before the database is queried again.

    You can turn the option off either in Crystal (file menu) or through the CRAXDRT.Report object in VB.

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