on 12-05-2008 1:38 PM
Aktuell evaluiere ich Crystal Reports 2008 und erhalte eine InvalidOperationException:
Der Bereichstext kann nicht festgelegt werden.
Ich habe im Report Designer einen Report mittels einer XML-Datenquelle erzeugt und dann in das C# Projekt eingebunden.
Während der Laufzeit versuche ich nun ein dynamisch erzeugtes Dataset an diesen Report zu binden:
ReportDocument reportDocument = new CrystalReport1();
foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument.Database.Tables)
{
if (ds.Tables.Count > 1)
table.SetDataSource(ds);
else
table.SetDataSource(ds.Tables[0]);
}
crystalReportViewer1.ReportSource = reportDocument;
Bei der letzten Zeile tritt dann die Exception auf.
Woran liegtu2019s?
Vorab vielen Dank.
Up-to-date I evaluate Crystal of report 2008 and receive a InvalidOperationException:
The range text cannot be specified.
I produced in the report designer a report by means of a XML data source and then into the C# project merged. At run time I try to bind now a dynamically produced DATA set to this report:
Report document report document = new CrystalReport1 ();
foreach (CrystalDecisions.CrystalReports.Engine.Table table into reportDocument.Database.Tables)
{
if (DS. Tables.Count > 1)
table.SetDataSource (DS);
else
table.SetDataSource (DS. Tables [0]);
}
crystalReportViewer1.ReportSource = report document;
With the last line then the exception arises.
What liegt's?
First thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Forums is English only
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.