accessing an XML file with Filename in a var c#
Hi,
I have an XML file with the file name accessible through a variable File.Filename() I want to give CR the variable instead of setting it in the wizard. Does anyone know if this is this possible?
I have
StatReport myReport = new StatReport(); //The report
DataSet myDataset = new DataSet(); //The Dataset
myDataset.ReadXml(File.FileName()); //Read the File
myReport.SetDataSource(myDataset); /Set the datasource
But in the Crystal Report I seem to be required to select a static location for my source file through the wizard. Can I set the XML File Path property to a variable, File.FileName() anywhere?
Thanks all!
|