Problem with TfrxDBDataset RangeBegin RangeEnd
Sorry I made a stupid mistake and posted my question in my mother language German.
Please apologize ???here is the English version:
I have the following problem.
Under Delpi2010 via dbExpress I connect to firebird database. Reportgenerator is Fastreport Prof version 4.15.
To print a complete table works without any problems with the following settings:
ObjectInspector: frxDBDataset1.RangeBegin is: rbFirst
ObjectInspector: frxDBDataset1.RangeEnd is: reLast
To print a single dataset of the table also works fine with :
ObjectInspector: frxDBDataset1.RangeBegin is: rbCurrent
ObjectInspector: frxDBDataset1.RangeEnd is: reCurrent
I would like to work with one report for both tasks. Therfore I implemented two menu items to switch between CompletePrint and SinglePrint.
Within the part to change the printout from complete to single the following problem comes up.
The following 2 lines of code are rejected by the compiler with an error message:
Line 200: frxDBDataset1.RangeBegin := rbCurrent;
frxDBDataset1.RangeEnd := reCurrent;
[DCC error] xxx.pas(200): E2018 Record, Object or Classtype is required.
What is my mistake to get such an error message - every help will be appreciated.
Please apologize ???here is the English version:
I have the following problem.
Under Delpi2010 via dbExpress I connect to firebird database. Reportgenerator is Fastreport Prof version 4.15.
To print a complete table works without any problems with the following settings:
ObjectInspector: frxDBDataset1.RangeBegin is: rbFirst
ObjectInspector: frxDBDataset1.RangeEnd is: reLast
To print a single dataset of the table also works fine with :
ObjectInspector: frxDBDataset1.RangeBegin is: rbCurrent
ObjectInspector: frxDBDataset1.RangeEnd is: reCurrent
I would like to work with one report for both tasks. Therfore I implemented two menu items to switch between CompletePrint and SinglePrint.
Within the part to change the printout from complete to single the following problem comes up.
The following 2 lines of code are rejected by the compiler with an error message:
Line 200: frxDBDataset1.RangeBegin := rbCurrent;
frxDBDataset1.RangeEnd := reCurrent;
[DCC error] xxx.pas(200): E2018 Record, Object or Classtype is required.
What is my mistake to get such an error message - every help will be appreciated.