Results 1 to 2 of 2

Thread: Crystal Report 8.5 Problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    Crystal Report 8.5 Problem

    Hello,
    I m using Crystal Report 8.5 with VB. I have created a report in CR 8.5 and make its .DSR in VB.
    Wehn i created that report the database path was E:\Project
    I have copy that project to F:\Project.

    My report shows that what it get from E:\Project instead of F:\Project

    How to change the the Database path of Report at runtime.

    I m using the following code to show report:

    Dim Report As New CrAcList
    Dim Db As New ADODB.Connection
    Dim Rs As New ADODB.Recordset

    Set Db = New ADODB.Connection
    Db.ConnectionString = Conn
    Db.Open

    Set Rs = New ADODB.Recordset
    Rs.Open "Select * from Tbl_Accounts ", Db, adOpenDynamic, adLockOptimistic

    Report.Database.SetDataSource Rs

    CRViewer1.ReportSource = Report

    CRViewer1.EnableRefreshButton = True
    Report.DiscardSavedData
    CRViewer1.ViewReport


    please help me
    Farooq

  2. #2

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