Crystal Report(水晶报表)的报表封装成VB的DLL[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 zcwhgj 的 blog

                                                    

        databasepassword = ""            '数据库登陆密码,这里为空

        databaseservername = "newreport"       'oracle数据库的服务名

        databaseusername = "newreport"           'oracle数据据库的登录名

   

        cn.connectiontimeout = 5

        cn.cursorlocation = aduseclient

        cn.connectionstring = "provider=msdaora.1;password=" + databasepassword + ";user id=" + databaseusername + _

        ";data source=" + databaseservername + ";persist security info=true"  '数据库连接字符串。

        cn.open                '打开数据连接。

        set getconnection = cn

    end if                 '结束if cn.state = adstateopen

    exit function

errhand:

本文关键:水晶报表 DLL VB 封装 Crystal Report 报表
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top