>Hi,
>
>Is there any way to create report objects purely from code, ie can I have a menu button on a toolbar that, when clicked, creates a report object in the upper left corner of the detail area where expression is "TestFunction()" and the field can stretch (or something like this) ??
Klas,
Since report file (.frx and .frt) is another fox table answer is yes. But you should study its layout a lot to be able to do it and it would be easier to create what you want in report designer first and then browse to see what it writes. Some report extensions change frx this way. ie: To change color for an object, you locate the object in frx, change penred, pengreen, penblue, fillred, fillgreen, fillblue values. My colleague does something like that, keeping the original frx in form.DE and uses form as preview (for fonts only - header, title, footer ...), changing frx via a toolbar.
Cetin