Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Change Font size in RichText Datawindow 1 column

$
0
0

Running PB 12.1  Classic.

Whatever I do; font size does not want to change in a Richtext presentation style external datawindow size of column = string 20000000 bytes

Why = long story - converting unix reports to PB for Archiving.

 

I do this after the only column is populated.  You can actually see all text

dw_1.SelectTextall()     Actualy selects ALL text in dw

I have tried to setColumn(1) returns -1

src = dw_1.Modify("a.Font.Height='-8'")      a = column name     Line 1  Column 15: incorrect syntax.

li_rtn = dw_1.SetRichTextSize(8)    li_rtn = -1

 

I could use 2 datawindows with different Font sizes but I would like to know how can I accomplish this with code.

 

Anything else works

 

src = "DataWindow.Print.Orientation='1'

src = dw_1.Modify("DataWindow.Print.PrinterName='Xerox Phaser 5500DX PS Tray 3'")

src = dw_1.Modify( "datawindow.print.preview=yes" )

ls_default_printname = dw_1.Object.DataWindow.Print.PrinterName

li_PageCount =  long ( dw_1.describe  ("evaluate('pagecount()'," + string ( dw_prt.rowcount() ) + ")"))

src = dw_1.Modify( "datawindow.print.preview=no" )

ls_page_range =dw_1.describe ( "DataWindow.Print.Page.Range" )

li_noCopies =  integer( dw_1.describe ("DataWindow.Print.Copies"))

src = "DataWindow.Print.Copies='" +String(astr_spool.copies)+"'"

src = dw_1.Modify( src )

src = "DataWindow.Print.duplex='" + String(astr_spool.duplex)+"'"

src = dw_1.Modify( src )

src = "DataWindow.Print.paper.Source='2'"

src = dw_1.Modify( src )

dw_1.Object.DataWindow.Print.PrinterName= 'Sybase Datawindow PS'


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>