cancel
Showing results for 
Search instead for 
Did you mean: 

Problem wegen einer InvalidOperationException

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Immer noch dasselbe:

Der Bereichstext kann nicht festgelegt werden.

Answers (1)

Answers (1)

0 Kudos

Forums is English only