Where is StiXmlDatabase?
Posted: Sun Nov 14, 2010 5:49 am
In the FAQ document (last question) it is stated that to change the data connection in the loaded report without the designer, one has to write the following:
But StiXmlDatabase does not exist in the latest libs. How can I get them?
Code: Select all
report.dictionary.databases.clear();
var database: StiXmlDatabase = newStiXmlDatabase("Demo", "reports/data/Demo.xsd", "reports/data/Demo.
xml");
var database: StiMySqlDatabase = newStiMySqlDatabase("Demo", "", "Server=localhost;Port=3306;
Database=db_name;Uid=root;Pwd=;", false);
report.dictionary.databases.add(database);