Page 1 of 1

JDBC dataSource

Posted: Thu Mar 24, 2016 12:39 pm
by heqichao
Hello.
I user JDBC dataSoucr on Stimulsoft Report.Java,and I set the JdbcSource on the next code:

Code: Select all

StiReport report = StiSerializeManager.deserializeReport(new File(reportPath));
	StiJDBCDatabase db =new StiJDBCDatabase("arp","10.0.2.41:3306","com.mysql.jdbc.Driver","arp","arp");
	 report.getDictionary().getDatabases().add(db);
but it throw the exception :
Image
thank you.

Re: JDBC dataSource

Posted: Thu Mar 24, 2016 1:25 pm
by Vadim
Hello.
For MySql connection please use StiMySqlDatabase("apr", "url=jdbc:mysql://localhost:3306/sakila;user=root;password=terra2;database=sakila");

Re: JDBC dataSource

Posted: Tue Mar 29, 2016 12:48 am
by heqichao
thank you!

Re: JDBC dataSource

Posted: Tue Mar 29, 2016 5:42 am
by Vadim
Hello.
We are always glad to help you.