cancel
Showing results for 
Search instead for 
Did you mean: 

Border in Grid Datawindows

Former Member
0 Kudos

I know this is a longshot but... is there a way to get more spacing between the border and field text in a grid dw when the dw in printed (Grid - Display On Print Only).  Right now the text is bleeding into the border lines (see example).

Accepted Solutions (0)

Answers (3)

Answers (3)

arnd_schmidt
Active Contributor
0 Kudos

IMHO  to use an extra space in front or at the end of the display format is the cheapest good looking solution, like

" [general]"  for a left aligned string or

"#,##0.00 " for a  decimal number.

.Arnd

Former Member
0 Kudos

Thanks all.  I went with Arnd's suggestion.

Former Member
0 Kudos

Hi Neil,

The lines in the screenshot do look very black. I take it this is when printed.

A longshot requires a longbow. Other than not showing grid lines at all or converting to tabular and painstakingly re-added some of them manually, the only real solution is to convert all fields to strings and adding a couple of spaces to either any depending on justification.  So instead of holding 750 in the buffer you hold a string "$750.00  "

hth Lars

Former Member
0 Kudos

change the format to use a backslash space to add an extra space

[currency]\

I don't think there is a way to see if you are printing, but  you could set the datawindow into print preveiw mode just prior to printing then use the format expression: 

"[currency]" + if( describe("DataWindow.Print.preview")='Yes', '\ ', '')

"#,##0.00" + if( describe("DataWindow.Print.preview")='Yes', '\ ', '')