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.
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?
-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, 2007
"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
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.