Item - OnPreDataItem()
Location.FIND('-');
i:= 1;
REPEAT
LocName := Location.Code;
i:= i +1;
UNTIL
(Location.NEXT=0) OR (i>Location.COUNT);
Location.FINDFIRST;
n :=0 ;
REPEAT
n := n+1;
XLRow(FORMAT(LocName[n]));
ExcelBuf.NewRow;
UNTIL Location.NEXT= 0;
--> Failed
Location.FINDFIRST;
n :=0 ;
REPEAT
n := n+1;
FOR x:=1 TO 3
DO
XLRow(FORMAT(LocName[n]));
NEXT;
ExcelBuf.NewRow;
UNTIL Location.NEXT= 0;
Comments
You might wanna add something like:
IF Arraylen(LocName) > X THEN
XLRow(FORMAT(LocName[x]));
it's still wrong
your code make my report like this
Location 1 Location 2 Location 3 Location 4
Location 2 Location 3 Location 4 Location 5
Location 3 Location 4 Location 5
Location 4 Location 5
Location 5
write only in columns A,B,C and then change row?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
i don't know what you mean...
i want to create reports Item By Location
because the location is too many to sideways
so i want to limit it only 3 location sideways
the remains is show below it...
so, if you have 6 location, you want to write the first three in the first three columns in excel (A,B,C) and then write the rest of the location in the second row of excel
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
i want to do like that
onprereport
location - onaftergetrecord for the function try to search "FALSE,FALSE,FALSE" in mibuso, you'll probably find it..
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
NEVER USE
but use: see also this for more info : http://www.mibuso.com/howtoinfo.asp?FileID=22
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
eiy i already got the answer
just like this
thanks for any help \:D/
ok
thanks a lot kriki
for the info
please use Code tags for posting code, not Quote tags. It makes the code much easier to read because indentation is preserved.
sorry about that