Print Grid
Posted: Thu Sep 04, 2014 10:57 pm
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
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