>Hi Naomi,
>
>CodeRep works pretty simillar to FRX engine but instead of interpreting
>report expressions from each band, CodeRep class directly executes
>code stored in event methods respective to frx structure.
>
>So as you wld place expressions in report bands of frx,
>here you wld write respective code to make that writing/printing happen.
>
>CodeRep class will just make sure that report events take place
>when they are supposed to.
>
>Typical CodeRep implementation for TXT output format, would look somewhat like this;
>
>
>
>define class myReport as txt_report
>.
>.
>procedure report_setup
> this.r_alias = yrDrivingAlias
> declare this.r_GrpExp(2)
> this.r_GrpExp(1)= yrGroupCondition1
> this.r_GrpExp(2)= yrGroupCondition2
> .
> .
>
>procedure PageHeader
>**position help
>* ? ' 10 20 30 40 50...
>* ? '012345678901234567890123456789012345678901234567890...
>
> ? '---- ------------------------- -------'
> ? 'Code Name Value1 '
> ? '---- ------------------------- -------'
>
>procedure GroupHeader1
> ? cGroupExpression
> ? '-------------------------------------------'
>
>procedure Detail
> ? table1.Code
> ?? table1.Name at 5
> ?? table1.value1 at 31
> .
>
>etc
>.
>.
>enddefine
>
>
>
>
>You can convert relatively easily ordinary DOS frx reports using this
>class, but If I understood correctly this report hv to print in preprinted forms.
>In this case it might be easier for you to do it straight forward with ordinary code (set of procedures) printing directly to dotmatix with ?/?? , then having to learn class functionality & play by its rules.
>
>
>Rgds++
>Sergio
Thanks a lot for the explanation, Srdjan.
If it's not broken, fix it until it is.
My Blog