[CLOSED] Display Header title and data in different excel cell
Hi, I have unique requirement where there are no columns but header data. When i display report in excel, the header title and data are displaying in one/same cell.
Is there any way where we can display Header title in one cell and data in another cell using Excel formst? Below is the same code for your reference. TABLE FILE CAR PRINT CAR.ORIGIN.COUNTRY NOPRINT HEADING "Country" "Car" WHERE RECORDLIMIT EQ 2 ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * END
Any help on my issue are much more appriciated.This message has been edited. Last edited by: Kerry,
WF 7702m / Windows
October 29, 2012, 09:33 AM
SriAravind
Hi.. try the below code and let us know, is this you are looking for:
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY NOPRINT
HEADING
"<+0>Country<+0>Car"
WHERE RECORDLIMIT EQ 2
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
END
WebFocus Version 7.7.05 Windows, HTML/PDF/EXL2K/AHTML
October 29, 2012, 11:16 AM
GamP
Excel is column based, whether you like it or not. That means you'll have to think in columns. The example you gave will put text and data in one cell. So change your request. The next example will put it in two cells:
TABLE FILE CAR
PRINT COUNTRY AS 'Country'
OVER CAR AS 'Car'
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
END