Hi Andrew,
Do you have Saved Data checked on in the Report?
What happens if you refresh the data?
If you manually set the data source in CR Designer does that work, no mapping UI pop up and/or message like Data up to date if you verify the database also?
Try this also:
bool IsRpt = true;
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
rpt.Load(rptName.ToString(), OpenReportMethod.OpenReportByTempCopy);
rptClientDoc = rpt.ReportClientDocument;
System.Data.DataSet ds = new System.Data.DataSet();
ds.Tables.Add(dt1);
ds.Tables.Add(dt2);
ds.WriteXml(@"D:\Atest\list_of_workflows.xml");
ds.WriteXmlSchema(@"D:\Atest\list_of_workflows.xsd");
ds.ReadXml(@"D:\Atest\Dev Element\data_ReplicateCRIssue.xml", XmlReadMode.ReadSchema);
ISCRDataSet DS1 = (ISCRDataSet) CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
// uses this for OLE DB DS record set
rptClientDoc.DatabaseController.SetDataSource(DS1, "FunctionSales", "FunctionTotalPrice");
IsRpt = true;
Requires using RAS and ReportClientDocument
Then view the RCD also:
try
{
if (!IsRpt)
{
crystalReportViewer1.ReportSource = rptClientDoc.ReportSource;
}
else
{
crystalReportViewer1.ReportSource = rpt;
}
}
catch (Exception ex)
{
MessageBox.Show("ERROR: " + ex.Message);
}
Don