Hello,
Hello, we use "HTTP XML" as a data source for CR-Server, Version 11.5.8.826.
In order to set up zhe data for our report we add a series of tables to the tables collection of the database property. Each table is added to the report by specifying the connectivity information.
The propertybag objects contain the connection information necessary to connect to HTTP XML data
source.
Sample:
....
ConnectionInfo connectionInfo = new ConnectionInfoClass();
PropertyBag myLogonPropertyBag = new PropertyBagClass();
myLogonPropertyBag["HTTP(s) XML URL"] = pXMLSourceURL;
PropertyBag propertyBag = new PropertyBagClass();
propertyBag["Database DLL"] = "crdb_xml.dll";
propertyBag["QE_Database Name"] = "";
propertyBag["QE_DatabaseType"] = "XML";
propertyBag["QE_LogonProperties"] = myLogonPropertyBag;
propertyBag["QE_ServerDescription"] = pXMLSourceURL;
connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
connectionInfo.Attributes = propertyBag;
....
lReportClientDocument = lReportAppFactory.NewDocument();
Table table = new TableClass();
table.Name = "root";
table.ConnectionInfo = connectionInfo;
lReportClientDocument.DatabaseController.AddTable( table, null );
....
The method AddTable throws the following exception:
Unknown Database Connector Error in File Unknown.rpt
\servers\ras\dtsagent\cdtsagent.cpp:3191: CDTSagent::doOneRequest reqId=109: CSResultException thrown
Has anyone an idea why this exception could happen?
Thank you in advance.