B4J Question Using CrystalReport Library

enrique.fortin

Member
Licensed User
I am trying to use some reports that are already created in another application for my mobile applications.

my intention is to use a b4j application to create them and send them via mail.

I saw this library in the forum

but I can't get it to work, configure everything as explained in the steps.


Code to read the report:
Sub btnSimpleReport_Click
    Dim cr As CrystalReports
    
    cr.REPORT_NAME = "C:\Users\enrique.fortin\Desktop\ReportesHN\rptInstalacion.rpt"
    cr.USERNAME = "MyUserName"
    cr.PASSWORD = "MyPassword"
    cr.TRUSTED_CONN = "false" 'or "true"
    cr.CONN_URL = "jdbc:jtds:sqlserver://192.168.75.92:1433/DTKDBHN"
    cr.DB_NAME = "DTKDBHN"
    cr.DB_CLASS_NAME = "net.sourceforge.jtds.jdbc.Driver"
    cr.SERVER_NAME = "HN-VSR-SQL01"
    cr.LaunchReport
End Sub

this is the error I receive

I have already configured in crystal reports the file C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\Config.xml for jtds.
and this is the configuration

<Classpath>C:\Program Files (x86)\SAP BusinessObjects\\SAP BusinessObjects Enterprise XI 4.0\java/lib/jtds-1.3.1.jar;

<JDBCURL>jdbc:jtds:sqlserver://192.168.75.92:1433/DTKDBHN</JDBCURL>
<JDBCClassName>net.sourceforge.jtds.jdbc.Driver</JDBCClassName>
<JDBCUserName>MyUserName</JDBCUserName>
I don't know what I'm doing wrong if someone already has an example with jtds or can see what I have wrong I would appreciate it.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…