首先:
    水晶报表一定要用ODBC
解决方法:
    换报表:

解决方案 »

  1.   

    使用odbc连接。如:ajk
    With Cr_Report
            .Reset
            g_strSrvName = "AJK"
            strRptConnect = "DSN = " & g_strSrvName & ";UID = " & g_strUserID & ";PWD = " & g_strPass & ";DSQ =  " & g_strDBName
            .Connect = strRptConnect
            .ReportFileName = App.Path & "\REPORT\" & mstrW_InsEnfoSitua_LIST
            .Destination = mintCR_WINDOW
            .WindowState = crptMaximized
            .DiscardSavedData = True
            .PrintReport
        End With
      

  2.   

    CrystalReport1.ReportFileName = "e:\report5.rpt"
    CrystalReport1.DataFiles(0) = "e:\test1.mdb"
    CrystalReport1.Destination = crptToWindow
    CrystalReport1.Action = 1
    CrystalReport1.PrintReport
      

  3.   

    那 *.rpt除了由crw32.exe 生成以外,还有其它什么办法生成么?