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
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
What is the best way to print (large) memo fields?
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
- ignacio
- Site Admin
- Mensajes: 9442
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
What is the best way to print (large) memo fields?
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
>
>
>
>
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
>
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
What is the best way to print (large) memo fields?
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
>>
>>
>>
>>
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
>>
>>
>>
>>
- ignacio
- Site Admin
- Mensajes: 9442
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
What is the best way to print (large) memo fields?
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
>>>
>>>
>>>
>>>
>
>
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
>>>
>>>
>>>
>>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 126
- Registrado: Lun Mar 29, 2010 10:24 am
What is the best way to print (large) memo fields?
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
>>>>
>>>>
>>>>
>>>>
>>
>>
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
>>>>
>>>>
>>>>
>>>>
>>
>>