Results 1 to 2 of 2

Thread: crystal report problem

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    crystal report problem

    hello all my crystal report problem is continue

    VB Code:
    1. Dim Report As New CrystalReport1
    2.  
    3. Private Sub Form_Load()
    4. Screen.MousePointer = vbHourglass
    5. CRViewer1.ReportSource = Report
    6. CRViewer1.ViewReport
    7. Screen.MousePointer = vbDefault
    8.  
    9. End Sub
    10.  
    11. Private Sub Form_Resize()
    12. CRViewer1.Top = 0
    13. CRViewer1.Left = 0
    14. CRViewer1.Height = ScaleHeight
    15. CRViewer1.Width = ScaleWidth
    16.  
    17. End Sub

    this codin is make by dsn
    VB Code:
    1. Public C1 As New ADODB.Connection
    2. Public s, Ch, Ans As String
    3. Dim str1, SearchString
    4. Public RFRIM As New ADODB.Recordset
    5. Function OPEN_CONNECTION()
    6. If C1.State = 1 Then
    7. C1.Close
    8. End If
    9. 'C1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & App.Path & "\database\Salary_SYS.mdb"
    10. C1.ConnectionTimeout = 30
    11. C1.CursorLocation = adUseClient
    12. C1.Open ("dsn=ifw; uid=admin;pwd=india")
    13. If Err <> 0 Then
    14.     MsgBox "Please Make a ODBS Connection Named ifw on your computer including the database" + Chr(13) + "salary_sys.mdb  Thanks", vbCritical
    15. End If
    16. End Function
    17. Function Get_Special_Record_Set(ByRef s As String) As ADODB.Recordset
    18. Dim RTMP As New ADODB.Recordset
    19. If RTMP.State = 1 Then
    20. RTMP.Close
    21. End If
    22. RTMP.Open s, C1, adOpenDynamic, adLockOptimistic
    23. Set Get_Special_Record_Set = RTMP
    24. End Function

    this report running on my computer but not on other
    i make dsn on other then it run but when my recreate the set up and go to new computer then this codin not running
    help me


    please some expert codeguru help me............................

  2. #2
    New Member
    Join Date
    Sep 2005
    Posts
    15

    Re: crystal report problem

    You need to install runtime files for crystall report on new computer. That error is because there are no runtime files.

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