Hi, thanks in advance for any help! I have several reports that I am adding to an Excel document. There will be five total tabs, the first being a cover page, and the second will be a table of contents page, the last three will just be basic reports. I would like to add images to the cover page and table of contents, like logos/banners/etc. I am able to add the images with "TYPE=HEADING, IMAGE=IBFS:/WFC/Repository/Informatics/AppStudio/Header.jpg, $" but they are automatically placed in the top left corner and I cannot move them. I would like one image at the top, then text in the middle, and another image near the bottom. Is there a way to do this? Or a better way to do what I am trying to do? Still pretty new, thanks again for your help!
DEFINE FILE CAR Blank/A1 = IF COUNTRY EQ COUNTRY THEN ' ' ELSE ' '; END
This added the header to the top of the sheet and the footer on the bottom, both left justified. I had to add some blank lines to adjust the height of everything, but eventually got it to line up close to what I wanted. I never figured out how to place an image in a specific location but this will work for what I need.
WebFOCUS 8 Windows, All Outputs
June 21, 2016, 10:45 AM
Ricardo Augusto
I still cant.
TABLE FILE CAR
SUM
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
-* INCLUDE = IBFS:/EDA/UNICODE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=HEADING,
IMAGE=IBFS:/WFC/Repository/vesir218/std_reports/dev/ford_logo.jpg,
$
ENDSTYLE
END
WebFOCUS 8.1.05 / APP Studio
June 21, 2016, 11:04 AM
Litz26
I was able to get this to work with XLSX, not EXL2K, by adding
HEADING " "
After the BY statements. You may need to add some extra blank lines " " " " " " to get it to line up the way you want.
TABLE FILE CAR SUM CAR.BODY.SALES BY CAR.ORIGIN.COUNTRY HEADING " " ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * -* INCLUDE = IBFS:/EDA/UNICODE/_EDAHOME/ETC/endeflt.sty, $ TYPE=HEADING, IMAGE=IBFS:/WFC/Repository/vesir218/std_reports/dev/ford_logo.jpg, $ ENDSTYLE END
WebFOCUS 8 Windows, All Outputs
June 21, 2016, 11:09 AM
Ricardo Augusto
Still no image.
Image appers if I change output to PDF or XSLX.
How can I add a heading on the right of the image?This message has been edited. Last edited by: Ricardo Augusto,
WebFOCUS 8.1.05 / APP Studio
June 21, 2016, 11:28 AM
Ricardo Augusto
TABLE FILE CAR
SUM
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
HEADING
"Heading 1"
"Sub Heading 2"
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
-* INCLUDE = IBFS:/EDA/UNICODE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=HEADING,
IMAGE=IBFS:/WFC/Repository/vesir218/std_reports/dev/ford_logo.jpg,
position=(0 0),
SIZE=(0.6 0.25),
$
TYPE=HEADING, LINE=1, COLOR='RED', COLSPAN=5, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=2, COLOR='RED', COLSPAN=5, JUSTIFY=CENTER, $
-*TYPE=TABHEADING, LINE=1, COLSPAN=2, $
-*TYPE=TABHEADING, LINE=2, COLSPAN=2, $
ENDSTYLE
END