>I have set the a Relation property of "OneToMany" to .T.
>in order to print a Header & Detail report in the
>Report's dataenviornment.
>
>After the report has printed and it goes back to the main
>application, which has 2 grids that display Header and
>Details, the Header Grid got hay-wire with a few lines
>of record displaying ******* in the fields.
>
>But if I set the "OneToMany" Relation to .F., then there
>isn't any problem. But the Report would only print one
>line of the Detail record. Any suggestions? Thanks.
Alvin,
OneToMany property correspond to "set skip" command. It's readonly at runtime but "set skip" is not. You could have OneToMany in its default (.f.) and before report you could set skip to (cAliaslist) and "set skip to" when you're done.
OTOH I suggest doing reports with cursors. When you select the data you need into a cursor before the report you wouldn't worry about relations at all.
Cetin