on 09-25-2008 10:34 AM
Hi there,
I try to assign a xsd and a xml file to a xmldataset such as it is possible with the JRC. Unfortunately, the class IXMLDataSet is not available in .NET. What would be the equivalent in .NET so assign both XSD and XML content?
// create new XML Datasource that is used for containing streamed xml data
IXMLDataSet xmlDS = new XMLDataSet(reportContent.getXmlContent(), reportContent.setXsdContent());
Thanks,
Pascal
OK, I tried the following:
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.LocaleID = CeLocale.ceLocaleEnglish;
reportClientDoc.Open(ref(arguments[0]), 0);
// create new XML Datasource that is used for containing streamed
// xml data
CrystalDecisions.ReportAppServer.DataDefModel.ISCRXMLDataSet xmlDS =
new CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSet();
xmlDS.XMLData.ByteArray = reportContent.getXmlContent();
xmlDS.XMLSchema.ByteArray = reportContent.getXsdContent();
//Database connection is override by XML datasource
DatabaseController dbController =
reportClientDoc.DatabaseController.SetDataSource(xmlDS, "", "");
Is this the right way to do it?
What about ref(arguments[0])? Do I get the wanted parameter of the open method like this?
Thanks,
Pascal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.