Here is what I found: When specifying the text ( including numbers ), it is very important to specify the WIDTH of the value. With that in place, I can set align to "TR" as you suggested, and everything lines up perfectly. I prefer Calibri as a font because it is easier to read than the ol...
Maybe my post will only be for images .... (not sure anymore) . Sorry then .... :roll: Your post is for Text and is relevant in the sense, it explains cAlign. On screen, cAlign defaults to VCenter and HCenter. On printer it defaults to "TL" top left. and this parameter is next to oFont. I...
From Whatnew * TWindow Method SayText( cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder ) Applies to all derived classes like dialogs and controls To be used in o:bPainted. function FW_SayText( hDC or oWnd, cText, aRect, cAlign, ...
Using the tPrinter class, with font Calibri. Consider the values 125.99 25.99 5.99 With the code: oPrn:SayText( nRow, nCsp * 56, TRANSFORM( oPrintParts:parchg,"999,999.99") ,,, oFnorp ) The output of the numbers is center aligned, and not right aligned. ...
Do not use PAD_LEFT as 7th parameter when using SayText() Use 'nil' and test again. It should work without errors. Please run and let us know Yes, that made the trick. I didn't see that cAlign was meant as character type and didn't know that it's ...
... call METHOD GenHaruPDF() if the user clicks the 'save as pdf file' button. When printing with oPrn:Say everything works fine. But print with oPrn:SayText crashes. Regards, Detlef
... pdf file. I use TPreview:oDevice:GenHaruPDF( cFile, .f. ) Everything works ok if I code oPrn:say( ... ) in my print.prg But if I code oPrn:saytext( ... ) my program crashes with Unrecoverable error 9003: Too many recursive error handler calls Here a snippet from METHOD GenHaruPDF( cFile, ...
The point we were making is while printing normal multi-line text across pages, we do not need the outdated method of using memoline()s. oPrn:SayText() will automatically help, if you closely observe the code. But right now, this is not possible with RTF text. We understand your issue. As I said ...