Great, thank you Ignacio.
Maarten
"Ignacio Ortiz de Zúñiga" <
NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4bbc5f71@svctag-j7w3v3j....]4bbc5f71@svctag-j7w3v3j....[/email]
> Maarten,
>
> From the Xailer report generator you can do the following trick (with
> non-proportional fonts):
>
> 1) Define a column with the desired width that prints only the first
> memoline() of your memo field
>
> 3) On the event TReport:OnChange print the rest of lines with this pseudo
> code:
>
> DO WHILE nCurrentLine <= nTotalLines
> WITH OBJECT oReport
> :StartLine()
> :PrintAtCol( nColOrder, Memoline( cText, nCurrentLine ++ ), ... )
> :EndLine()
> EN WITH
> ENDDO
>
> Regards,
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
>
http://www.xailer.com
>
http://www.xailer.info
>
> "Maarten Roos" <
m.roos@ecem.com> escribió en el mensaje de
> noticias:[email=4bbb4e52@svctag-j7w3v3j....]4bbb4e52@svctag-j7w3v3j....[/email]
>> Ignacio,
>>
>> thank you for the answer.
>>
>> I will try it with TCanvas:DrawRichEdit() otherwise i will do the good
>> old mlcount and memoline!
>>
>> Also, how do you handle large memo fields with the report generator?
>> Probably not?
>>
>>
>> "Ignacio Ortiz de Zúñiga" <
NoNameToAvoidSpam@xailer.com> wrote in message
>> news:4bb99dc6$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Maarten,
>>>
>>> Is not an easy task if you are using a proportional font, but you can
>>> use the method TCanvas:DrawRichEdit() to do the job.
>>>
>>> BTW if you use a non proportional font like Courier then the functions
>>> mlcount() and memoline() can be used.
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Equipo de Xailer/Xailer team]
>>>
http://www.xailer.com
>>>
http://www.xailer.info
>>>
>>> "Maarten Roos" <
m.roos@ecem.com> escribió en el mensaje de
>>> noticias:4bb063c6$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> Hello all,
>>>>
>>>> I am using the demo version to build a little application to convince
>>>> my
>>>> selves and my boss to use Xailer in order to convert our old clipper
>>>> applications. I am wondering what is the best way to print memo fields?
>>>> How
>>>> do I determine how many lines to print so I can stop printing (if
>>>> necessary)
>>>> and go on to the next page and continue? You had with clipper mlcount
>>>> and
>>>> memoline, you have now also, but what is the number of characters per
>>>> line
>>>> or is there another (better) way to print large text fields?
>>>>
>>>>
>>>> Thx
>>>> Maarten
>>>>
>>>>
>>>>
>>>>
>>
>>