>>Hi Everybody,
>>
>>I would like to make a general report. When the user selects a table, s/he have a report for that DBF. This is a kind of report automation. How may I do that?
>>
>>Thank you,
>>Ali
>
>The first question is, how to select the data? For instance, the framework Visual Extend has a "Quick Report" feature, which does this, based on the main grid in the currently-selected form. You might also just show the user a list of tables.
>
>This generic solution is quite complicated; for instance, you may want to let the user select the desired fields.
>
>I believe that in the case of Visual Extend, the framework directly edits the report file (opened as a table), but this is fairly complicated, too.
VFP has that, too. You could whip up a little form that allows you to choose the fields as that's an optional parameters to the quick report.