Temat: Migracje do Crystal Reports for Eclipse
Zawsze nienawidzilem postow bez odpowiedzi, wiec doloze piec groszy: Sciagnac CR for Eclipse (pelna wersje Eclipse + biblioteki) File->New->Project...->Crystal Reports for Java Project
metoda changeDataSource@CRJavaHelper
connectionInfo = newTable.getConnectionInfo ();
propertyBag = new PropertyBag ();
...
/ Overwrite any existing properties with updated values
propertyBag.put ("Trusted_Connection", TRUSTED_CONNECTION);
propertyBag.put ("Server Type", SERVER_TYPE);
propertyBag.put ("Use JDBC", USE_JDBC);
propertyBag.put ("Database DLL", DATABASE_DLL);
propertyBag.put ("JNDIOptionalName", JNDI_OPTIONAL_NAME);
propertyBag.put ("Connection URL", CONNECTION_URL);
propertyBag.put ("Database Class Name", DATABASE_CLASS_NAME);
// propertyBag.put("Server Name", SERVER_NAME); //Optional property
// propertyBag.put("Connection String", CONNECTION_STRING); //Optional property
// propertyBag.put("Database Name", DATABASE_NAME); //Optional property
// propertyBag.put("URI", URI); //Optional property
connectionInfo.setAttributes (propertyBag);