120x120
1、Crystal Report 2008下载(提取码:ccxb)
(1)下载解压后,请以“管理员身份运行” setup.exe,自定义安装位置
D:\Program Files (x86)\Business Objects\
(2)密钥和注册码网上一大堆,当然附件中也有。注意断网操作!!
2、下载JDBC 相关jar包,本页提供下载!
解压后,将mysql-connector-java-5.1.22-bin.jar复制到CrystalReport的external目录下面,
D:\Program Files (x86)\Business Objects\Common\4.0\java\lib\external\

3、如果您的电脑没安装java程序,您需要至少下载jdk6.0(提取码:x8nv)
4、找到 JAR包的配置文件CRConfig.xml(路径:D:\Program Files (x86)\Business Objects\Common\4.0\java\CRConfig.xml),配置驱动及更新JDK环境,参考以下代码:
<DataDriverCommon> <!--<JavaDir>D:\Program Files (x86)\Business Objects\javasdk\bin</JavaDir>--> <JavaDir>C:\Program Files (x86)\Java\jdk1.6.0_43\bin</JavaDir> <Classpath> D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/mysql-connector-java-5.1.22-bin.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/crlovmanifest.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRLOVExternal.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBJDBCServer.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBXMLServer.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBJavaBeansServer.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/CRDBXMLExternal.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/log4j.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBSForceServer.jar; D:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/CRDBSForceExternal.jar;${CLASSPATH} </Classpath> <IORFileLocation>${TEMP}</IORFileLocation> <JavaServerTimeout>1800</JavaServerTimeout> <JavaServerStartupTimeout>30</JavaServerStartupTimeout> <JVMMaxHeap>64000000</JVMMaxHeap> <JVMMinHeap>32000000</JVMMinHeap> <NumberOfThreads>100</NumberOfThreads> </DataDriverCommon>

5、打开Crystal Report 2008,创建新的连接:
(1)选择JDBC(JNDI);
(2)在“连接URL”中填入:jdbc:mysql://localhost:3306/lvjindb
在“数据库类名”中填入:com.mysql.jdbc.Driver,然后下一步......
点击在新窗口中浏览此图片
互联故事 | 评论(0) | 引用(0) | 阅读(269)

表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]