Topic: Data Source and Parameters inCRXI Posted: 25 Sep 2009 at 1:26am
Good day Sirs:
this is my first post here, should i violate any rules, please accept my humblest apologies.
I would like to ask your help regarding my problem. Im using Eclipse Europa and Crystal Reports XI. What I would like to do is to dynamically change the DataSource of my Crystal Report. I believe I have done that with the following codes:
//Set the datasource for all main report tables. for (int i = 0; i < tables.size(); i++) { ITable origTable = tables.getTable(i); ITable newTable =(ITable)((IClone) origTable).clone(true);
//Keep existing name and alias. newTable.setName(DB_SCHEMA + newTable.getName()); newTable.setAlias(newTable.getAlias());
//Change properties that are different from the original datasource. origTable.setQualifiedName(newTable.getName());
//Change connection information properties. IConnectionInfo connectionInfo = newTable.getConnectionInfo();
//Set new table connection property attributes. PropertyBag propertyBag = new PropertyBag();
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum