I'm trying to create a text into a box with printer class
but not run ok
I made
but it not create the box and print the text on one line

how do I print a justified text (or rtf file) with printer class ?
but not run ok
I made
#include "FiveWin.ch"
function Main()
local oPrn, cText
local oFont
local cmLeft
local cmTexto
PRINTER oPrn PREVIEW
DEFINE FONT oFont NAME "Courier New" SIZE 0, -10 OF oPrn
DEFINE PEN oPen1 STYLE PS_SOLID WIDTH 2 OF oPrn
PAGE
oPrn:TextInBox( 10,5,"Ai sensi dell'art. 10 della legge 675/96 'Tutela delle persone e di altri soggetti rispetto al trattamento dei dati personali'"+CRLF+;
" La informiamo che i dati personali da Lei forniti saranno trattati, nel rispetto degli obblighi di legge",2,2,oFont,oPen1 )
ENDPAGE
ENDPRINTER
oFont:End()
returnbut it not create the box and print the text on one line

how do I print a justified text (or rtf file) with printer class ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

