Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using .fex files for headers and footers

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using .fex files for headers and footers
 Login/Join
 
Gold member
posted
Below is a sketch of my code that loops thru a db to print form letters. The line 'EX letterhead.fex' inserts a letterhead created by an external .fex file. This works fine.

-REPEAT XLOOP FOR &XIND FROM 1 TO &XCNT
EX letterhead.fex
TABLE FILE ACL_HOLD2
ON TABLE SET PAGE-NUM OFF...
ON TABLE SET STYLE ...
ENDSTYLE
END
-XLOOP

I want to do the same thing for the footer, using footer.rex, but the following...

-REPEAT XLOOP FOR &XIND FROM 1 TO &XCNT
EX letterhead.fex
TABLE FILE ACL_HOLD2
ON TABLE SET PAGE-NUM OFF...
ON TABLE SET STYLE ...
ENDSTYLE
END
EX footer.fex
-XLOOP

... inserts a page break before the footer, when I want the footer on the same page. After the header and content there is plenty of room for the footer. What should I do to suppress the page break?

Thanks.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
You might try this:

-REPEAT XLOOP FOR &XIND FROM 1 TO &XCNT
EX letterhead.fex
TABLE FILE ACL_HOLD2
FOOTING
-INCLUDE footer.fex
ON TABLE SET PAGE-NUM OFF...
ON TABLE SET STYLE ...
ENDSTYLE
END
-XLOOP


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
"0 ERROR AT OR NEAR LINE 6 IN PROCEDURE footer
(FOC002) A WORD IS NOT RECOGNIZED: DEFINE
BYPASSING TO END OF COMMAND
(FOC3298) ERROR FOUND IN A COMPOUND REPORT
Compound Report is TERMINATING....."

Seems to have choked on finding DEFINE in footer.fex.

Thanks anyway.



quote:
Originally posted by Dan Satchell:
You might try this:

-REPEAT XLOOP FOR &XIND FROM 1 TO &XCNT
EX letterhead.fex
TABLE FILE ACL_HOLD2
FOOTING
-INCLUDE footer.fex
ON TABLE SET PAGE-NUM OFF...
ON TABLE SET STYLE ...
ENDSTYLE
END
-XLOOP


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Gold member
posted Hide Post
UPDATE:

Apparently it was a spacing issue.

When I removed some lines from the content section, the footer did appear on the same page as desired. When I changed 'FOOTING' to 'FOOTING BOTTOM', the footer moved to the bottom of the page. All good.

However, there is still a big gap between the content ond the footer. And when I try to add back the removed lines, the footer gets shoved to a new page. My guess is there is a margin below the content and an additional margin above the footer that accounts for the big gap between the the two. And setting TOPMARGIN=0.0000000 and/or BOTTOMMARGIN=0.000000, does not seem to reduce this gap.

Any sugggestions?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Guru
posted Hide Post
Have you tried the mysterious PRINTPLUS commad?


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Gold member
posted Hide Post
No, But I'll take a look at the PRINTPLUS command.

Thanks.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using .fex files for headers and footers

Copyright © 1996-2020 Information Builders