Focal Point
Indenting lines in an EXL07 report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5677024476

January 23, 2015, 01:11 PM
Michele Brooks
Indenting lines in an EXL07 report
Does anyone know a way to indent lines in an EXL07 format report. I need to indent 3 blank spaces for certain lines. See example below.


Apples
   Granny
   Red Delicious
   Green

-SET &INDENT_LABEL1         = CTRAN(16,'   Red Delicious', 32,13,'A16');

 


The SHOWBALNK=ON does not work and neither does the above CTRAN example


Thanks

WF 8007
Windows XP


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
January 23, 2015, 03:06 PM
Tony A
Hi Michele,

Does it have to be EXL07? If you change it to EXL2K you might find that it works. I think mainly because of the "textual" format of the output from WF rather than the binary in which Excel will(?) always strip out extraneous spaces.

DEFINE FILE CAR
  D_MODEL/A70 = CTRAN(3,'...',46,13,'A3')|MODEL;
END
TABLE FILE CAR
   BY COUNTRY
   BY CAR
   BY D_MODEL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET LINES 999999
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 23, 2015, 04:07 PM
Tom Flynn
It's SHOWBLANKS, works for me...
  
SET SHOWBLANKS = ON
DEFINE FILE CAR
  CATEGORY/A20 = '    ' | CAR;
END
TABLE FILE CAR
SUM
    RETAIL_COST 
	DEALER_COST
   BY COUNTRY
   BY CATEGORY
 ON TABLE HOLD AS HOLD2
END
-RUN

DEFINE FILE HOLD2
  TOT1/P13C = RETAIL_COST;
  TOT2/P13C = DEALER_COST;
END
TABLE FILE HOLD2
SUM
    TOT1 NOPRINT 
	TOT2 NOPRINT
  BY COUNTRY NOPRINT
SUM
    RETAIL_COST 
    DEALER_COST 
  BY COUNTRY NOPRINT
  BY CATEGORY AS 'CATEGORY'
ON COUNTRY SUBHEAD
"<COUNTRY<TOT1<TOT2"
ON TABLE PCHOLD FORMAT EXL07
ON TABLE SET HTMLCSS ON
ON TABLE SET LINES 999999
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=SUBHEAD, HEADALIGN=BODY, STYLE=BOLD,$
TYPE=TITLE, STYLE=BOLD,$
ENDSTYLE
END
-RUN
-EXIT

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 28, 2015, 08:07 AM
Rifaz
hi Michele,

Tried with DM, still, couldn't get it to work to have spaces in the beginning. But, it'll leave spaces b/w the datas.

-SET &XLDOTS='.';
-SET &XLSP=CTRAN(1,&XLDOTS,46,13,'A1');

Another method, which I followed for page numbers.

SET SHOWBLANKS = ON
DEFINE FILE CAR
MAX_PADDING/A30 = '@@@@@@@@@@@@@@@@@@';
INSTRLEN/I5 = ARGLEN(24, MODEL,INSTRLEN);
DES/D12 = IF INSTRLEN EQ 3 THEN 1 ELSE IF INSTRLEN EQ 9 THEN 2 ELSE IF INSTRLEN EQ 11 THEN 3 ELSE IF INSTRLEN EQ 16 THEN 4 ELSE 7;
PADDING/A30= SUBSTR(30, MAX_PADDING, 1, DES, DES, PADDING);
PADDED_VALUE/A100 = PADDING || MODEL;
IND_VALUE/A100 = STRREP (100, PADDED_VALUE, 1, '@',1,' ',100, IND_VALUE);
END

TABLE FILE CAR
PRINT
MODEL
INSTRLEN
DES
PADDING
PADDED_VALUE
IND_VALUE
ON TABLE PCHOLD FORMAT EXL07
END



-Rifaz

WebFOCUS 7.7.x and 8.x