Page 1 of 1

Imprimir grafico insertado en tRichEdit5

PostPosted: Mon Jan 08, 2024 1:49 am
by Modesto
Estimados amigos un saludo cordial a todos.
Queria saber si alguien ha podido imprimir algun grafico insertado en TRichEdit5, con
sentencia :

@ nRow, nCol PRINT TO prn TEXT cTextRTF SIZE nWidth,nHeight MM

Esta sentencia imprime todo el texto editado con TRichEdit5, pero la imagen insertada la ignora.
En otro punto, cuando se quiere imprimir texto RTF sobre un gráfico, el fondo de las letras lo pone en blanco.
¿Alguien sabe cómo imprimir texto RTF sin que borre el fondo ?, es decir en modo transparente, como
el método mmSay(...).
Desde ya muchas gracias por su tiempo.

Re: Imprimir grafico insertado en tRichEdit5

PostPosted: Mon Jan 08, 2024 12:43 pm
by karinha
Buen día. ¿Puedes producir un ejemplo completo para probar?

Gracias.

Regards, saludos.

Re: Imprimir grafico insertado en tRichEdit5

PostPosted: Wed Jan 10, 2024 3:01 am
by nageswaragunupudi
It is possible to print normal text (not RichText) transparently over a background image using clause COLOR nClrText, NIL or COLOR nClrText, nAlphaColor

Eg:
Code: Select all  Expand view
@ nRow, nCol PRINT TO prn TEXT cTextRTF SIZE nWidth,nHeight MM FONT oFont COLOR CLR_BLACK, NIL
// or COLOR CLR_BLACK, ARGB( 1, CLR_WHITE )
 


But it is not now possible to print RichText transparently.
We are looking into the issue and try to provide transparent printing of RichText also in future versions.

Re: Imprimir grafico insertado en tRichEdit5

PostPosted: Wed Jan 10, 2024 4:58 am
by nageswaragunupudi
While it is not possible to print RichText transparently over an Image, the opposite is possible.
We can print an image translucently (using alphalevel) over richtext.

Sample:
Code: Select all  Expand view
function test()

   local oPrn

   PRINT oPrn PREVIEW
   PAGE

   @ 1,1 PRINT TO oPrn TEXT MEMOREAD( "rtf.rtf" ) SIZE 6,4 INCHES
   @ 0.5,1 PRINT TO oPrn IMAGE "..\bitmaps\pngs\2.png" SIZE 2,2 INCHES ALPHALEVEL 120 ALIGN ""

   ENDPAGE
   ENDPRINT

return nil


Image

Re: Imprimir grafico insertado en tRichEdit5

PostPosted: Thu Jan 11, 2024 1:13 pm
by Modesto
Un saludo cordial Sr. Rao.
Muchas gracias por su tiempo y apoyo, imprimir el gráfico en forma traslúcida fue una excelente idea.
Si en futuras versiones se logra imprimir texto rtf en forma transparente sería estupendo.
Al igual que gráfico incrustado en rtf.