Столкнулся с такой проблемой
Добавляю в отчет 3 коллекции.
Код: Выделить всё
object value = testResultsCollection;
object value1 = patient;
object value2 = tSLStat;
StiReport report = new StiReport();
report.RegData("Results", value);
report.RegData("Patient", value1);
report.RegData("TSL", value2);
report.Load(Application.StartupPath + "..\\..\\..\\report3.mrt");
report.Show();
но при вызове метода report.Show(); получаю ошибку
Код: Выделить всё
Parent Data Source 'Results' and Child Data Source 'TSL' is not located in one DataSet and can't be used in relation 'TSL_Results'! You can't use property CacheAllData of report to cache this Data Source to DataSet.
Код: Выделить всё
object value = testResultsCollection;
object value1 = patient;
object value2 = tSLStat;
object value3 = limitStat;
object value4 = levelsStat;
StiReport report = new StiReport();
report.RegData("Results", value);
report.RegData("Patient", value1);
report.RegData("TSL", value2);
report.RegData("Limit", value3);
report.RegData("Level", value4);
report.Dictionary.Synchronize();
StiDataRelation dataRelation = new StiDataRelation("Levels_Results", report.Dictionary.DataSources["Results"], report.Dictionary.DataSources["Level"], new System.String[] { "Id" }, new System.String[] { "IdResult" });
report.Dictionary.RegRelations();
report.Dictionary.Relations.Add(dataRelation);
report.Load(Application.StartupPath + "..\\..\\..\\report4.mrt");
report.Show();
Код: Выделить всё
c:\Documents and Settings\Igor\Local Settings\Temp\7yb4cm1g.0.cs(58,61) : error CS1001: Identifier expectedc:\Documents and Settings\Igor\Local Settings\Temp\7yb4cm1g.0.cs(63,61) : error CS1001: Identifier expected
Заранее спасибо за помощь.