Originally posted by Mighty Max:
You could use conditional formatting in your WebFocus stylesheet.
-DEFAULT &OUTPUT_FMT = 'PDF'
-*-DEFAULT &OUTPUT_FMT = 'HTML'
DEFINE FILE CAR
OUTPUT_FMT/A10 = '&OUTPUT_FMT';
END
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
OUTPUT_FMT NOPRINT
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &OUTPUT_FMT
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
TYPE=DATA,
COLUMN=N1,
TARGET='_blank',
FOCEXEC=test_fex,
WHEN=OUTPUT_FMT EQ 'HTML',
$
ENDSTYLE
END