cancel
Showing results for 
Search instead for 
Did you mean: 

XMLDataset encapsulating XSD and XML needed

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member183750
Active Contributor
0 Kudos

See if the last post on this thread will help:

Ludek

Answers (0)