Dynamic dataset creation

I have simple application with four components:TfrReport,TfrDBDataSet,TADOStoredProc and TADOConnection.

After I've run report I can't manage TADOStoredProc component. If I set
storedProc->Active = false or form is destroyed I've got the following error:"BOF or EOF is true or current record has been deleted". After this error TfrReport behavior is inconsistent ;)
Do I need to create new instance of TADOStoredProc each time I start report ?

Comments

  • edited 8:00PM
    To clarify the issue:

    For example, I have to display report depending on input parameters:

    storedProc->Parameters->Items[1]->Value = 1;
    report->ShowReport();
    ...
    storedProc->Parameters->Items[1]->Value = 2;
    report->ShowReport();

    In second case report shows the same report as in first case. How to force it refresh actual data ?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.