Page 1 of 1

Print Grid

Posted: Thu Sep 04, 2014 10:57 pm
by franco
My new problem.
I create an array
create a temp table from array and fill the fields from a table.
I now have a temp table with the selected items I want.
I fill a grid with this data
DEFINE GRID brwTemp
COL 0
ROW 100
WIDTH 950
HEIGHT 330
HEADERS {"Item ", "Description", "Onhand", "Sellprice", "Cost", "Avecost", "Total Cost"}
WIDTHS {125, 300, 100, 100, 100, 100, 100}
JUSTIFY {0,0,1,1,0,0,0}
VALUE 1
ROWSOURCE tr
COLUMNFIELDS {"num1", "desc", "qtyonhand", "sellprice", "cost", "avecost", "totals"}

END GRID
when I go to print the grid I get error msg argument error len
PRINT GRID brwtemp ;
OF win_invrep;
FONT "Arial" ;
SIZE 8

I use #include "hfcl.ch" at start of program
is there something else I need to setup.
Thanks ..... Franco ;)

Re: Print Grid

Posted: Fri Sep 05, 2014 3:44 am
by Rathinagiri
You don't need a temporary table here to fill the array value.

However, I will check up the problem with the data bound grids.

Re: Print Grid

Posted: Fri Sep 05, 2014 3:59 am
by franco
Thank you for your quick response.
I have spent more time on this but still no success.
I like to use tables so I can index.
I guess sorting a large array would also work.
Thanks again ......... Francio