Search found 141 matches: saytext

Return to advanced search

Re: Numeric alignment with oPrn:SayText( )

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...
by TimStone
Thu May 18, 2023 4:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

... + cPic, aFont[ f ], cUnits )   nCol     := nWidth * 7/8 - nColWidth   nRow     := oPrn:SayText( nRow, nCol, aFont[ f ]:cFaceName, ;                  nColWidth,nil,aFont[ f ], ...
by nageswaragunupudi
Thu May 18, 2023 10:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

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...
by nageswaragunupudi
Wed May 17, 2023 12:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

Maybe my post will only be for images .... (not sure anymore) . Sorry then .... :roll:
by Marc Venken
Wed May 17, 2023 11:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

The seventh parameter is the alignment
Code: Select all  Expand view

oPrn:SayText( nRow, nCsp * 56, TRANSFORM( oPrintParts:parchg,"999,999.99") ,,, oFnorp, "R" )
 
by cmsoft
Wed May 17, 2023 11:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

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, ...
by Marc Venken
Wed May 17, 2023 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Numeric alignment with oPrn:SayText( )

...   [OUTLINE <nClr> SIZE <nSize> ] ;      [LASTROW <lrow>] ;   => ;      [<lrow> := ] <prn>:SayText( <nRow>, <nCol>, <cText>, [<nWidth>], [<nHeight>], ;            [<fnt>], [<aln>], ...
by Detlef
Wed May 17, 2023 9:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Numeric alignment with oPrn:SayText( )

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. ...
by TimStone
Tue May 16, 2023 9:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: create pdf

karinha,
your message is useless.
As you might see, your defines
Code: Select all  Expand view
#Define PAD_LEFT            0
#Define PAD_RIGHT           1
#Define PAD_CENTER          2

are all of type numeric.
Mr. Rao stated that the value of cAlign in Method oPrn:SayText has to be character type value.
by Detlef
Sun May 14, 2023 3:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create pdf
Replies: 14
Views: 901

Re: create pdf

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 ...
by Detlef
Sun May 14, 2023 2:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create pdf
Replies: 14
Views: 901

Re: create pdf

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
by nageswaragunupudi
Sun May 14, 2023 1:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create pdf
Replies: 14
Views: 901

Re: create pdf

... 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
by Detlef
Sat May 13, 2023 8:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create pdf
Replies: 14
Views: 901

create pdf

... 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, ...
by Detlef
Sat May 13, 2023 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create pdf
Replies: 14
Views: 901

Re: vertical position in preview

Detlef,

Maybe you should also look at the Saytext syntax. I believe that this function is the newer printing solution for future projects...
by Marc Venken
Thu May 12, 2022 6:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: vertical position in preview
Replies: 15
Views: 831

Re: Printing RTF 22.03

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 ...
by nageswaragunupudi
Tue Apr 12, 2022 3:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing RTF 22.03
Replies: 6
Views: 577
PreviousNext

Return to advanced search