现在要使用Datareport来做打印,但是我用的数据库是 SQLITE3  使用的是第三方的DLL进行连接的   提供的 数据集是cRecordset类的    在Datareport的数据源中设置无法使用,请问如何将 cRecordset 转换成 Recordset类呢?

解决方案 »

  1.   

    遍历cRecordset然后将其值移入recordset
      

  2.   

    SQLITE3 有windows下的驱动,安装后就可以跟access一样使用了。不用第三方转换。
      

  3.   

    http://www.ch-werner.de/sqliteodbc/
    sqliteodbc.exe 下载oCS  = "Driver={SQLite3 ODBC Driver};Database=@FSPEC@;StepAPI=;Timeout="
    Set oCNCT = CreateObject( "ADODB.Connection" )
      
    oCS = Replace( oCS, "@FSPEC@", sCurDir + sFina )
    oCNCT.Open oCS
    连接方法举例
      

  4.   

    谢谢各位,已经放弃了Datareport