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.

Printing Text From a TMemo Object.

Xailer professional forum in English
Responder
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Printing Text From a TMemo Object.

Mensaje por Dionisis Divaris »

Hello all
It is a silly question, but my mind is stacked. How can print the text
inside a TMemo control, directly to the printer?
Any help would be apreciate.
Best Regards
Dionisis
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9441
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Printing Text From a TMemo Object.

Mensaje por ignacio »

Dionisis,
Take a loot at the TCanvas class, property nMapMode (mmSIMULCHAR) and the
method TextOut()
Regards,
"Dionisis Divaris" <info@sgs-soft.gr> escribio en el mensaje
news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
> Hello all
>
> It is a silly question, but my mind is stacked. How can print the text
> inside a TMemo control, directly to the printer?
>
> Any help would be apreciate.
>
> Best Regards
> Dionisis
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Printing Text From a TMemo Object.

Mensaje por NoName »

Dionisis,
Take a loot at the TCanvas class, property nMapMode (mmSIMULCHAR) and the
method TextOut()
Regards,
"Dionisis Divaris" <info@sgs-soft.gr> escribio en el mensaje
news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
> Hello all
>
> It is a silly question, but my mind is stacked. How can print the text
> inside a TMemo control, directly to the printer?
>
> Any help would be apreciate.
>
> Best Regards
> Dionisis
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

Printing Text From a TMemo Object.

Mensaje por Gejza Horvath »

Dionisis,
change the control type to TRichEdit class and use the Print() method.
Gejza
"Dionisis Divaris" <info@sgs-soft.gr> pí¹e v diskusním pøíspìvku
news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
> Hello all
>
> It is a silly question, but my mind is stacked. How can print the text inside a TMemo
> control, directly to the printer?
>
> Any help would be apreciate.
>
> Best Regards
> Dionisis
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

Printing Text From a TMemo Object.

Mensaje por Gejza Horvath »

Dionisis,
change the control type to TRichEdit class and use the Print() method.
Gejza
"Dionisis Divaris" <info@sgs-soft.gr> pí¹e v diskusním pøíspìvku
news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
> Hello all
>
> It is a silly question, but my mind is stacked. How can print the text inside a TMemo
> control, directly to the printer?
>
> Any help would be apreciate.
>
> Best Regards
> Dionisis
>
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Printing Text From a TMemo Object.

Mensaje por Dionisis Divaris »

Many thanks both of you, for your quick answer. I will give a try.
Best Regards
Dionisis
Ο "Gejza Horvath" <_hsoftkn@nextra.sk> έγραψε στο μήνυμα
news:486d2ace$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dionisis,
> change the control type to TRichEdit class and use the Print() method.
>
> Gejza
>
> "Dionisis Divaris" <info@sgs-soft.gr> pνΉe v diskusnνm pψνspμvku
> news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
>> Hello all
>>
>> It is a silly question, but my mind is stacked. How can print the text
>> inside a TMemo control, directly to the printer?
>>
>> Any help would be apreciate.
>>
>> Best Regards
>> Dionisis
>>
>
>
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

Printing Text From a TMemo Object.

Mensaje por Xailer »

Many thanks both of you, for your quick answer. I will give a try.
Best Regards
Dionisis
Ο "Gejza Horvath" <_hsoftkn@nextra.sk> έγραψε στο μήνυμα
news:486d2ace$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dionisis,
> change the control type to TRichEdit class and use the Print() method.
>
> Gejza
>
> "Dionisis Divaris" <info@sgs-soft.gr> pνΉe v diskusnνm pψνspμvku
> news:[email=486d20c6@ozsrv2.ozlan.local...]486d20c6@ozsrv2.ozlan.local...[/email]
>> Hello all
>>
>> It is a silly question, but my mind is stacked. How can print the text
>> inside a TMemo control, directly to the printer?
>>
>> Any help would be apreciate.
>>
>> Best Regards
>> Dionisis
>>
>
>
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
Responder