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     [CLOSED] Footer Problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Footer Problem
 Login/Join
 
Gold member
posted
Hi,

I am creating a compound PDF report with two different tables. Now the requirement of the report is that it should show footer on each page and also the two sections should begin one after the other and not on a new page.

The problem I am facing is I am able to see my footer on each page, but each section begins on a new page.

The sample code of how I am implementing the footer is as follows.

TABLE FILE MAIN
PRINT
NAME AS 'Name,,'
ID/P19 AS 'Id#,'
AMOUNT/P17.2C AS 'Amount,'

HEADING
"Report"
" "
"Date: "
FOOTING BOTTOM
" FOOTER Page
TABLE FILE MAIN
PRINT
NAME1 AS 'Name 1,,'
ID1/P19 AS 'Id1#,'
AMOUNT1/P17.2C AS 'Amount1,'

HEADING
"Report"
" "
"Date: "
FOOTING BOTTOM
" FOOTER Page
Thanks for your help.

This message has been edited. Last edited by: Kerry,


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Virtuoso
posted Hide Post
Don't know if this is a valid remark in your case (since we do not see your complete request), but as soon as you specify FOOTING BOTTOM the footing goes to the bottom of the page, thereby forcing a next report onto the next page. Why not try it without the BOTTOM and see what happens?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Hi GamP

Now the sections come in the same page but again the problem with the footer persists.

Now the footer also comes when the section is ended (Which can be anywhere in the page. Even in the middle).

It is actually a good solution but I am stuck at the footer coming in between the page.


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Virtuoso
posted Hide Post
Ah, I think I now know what you're looking for.
Basically you just want a page number at the bottom of your page, and that has actually nothing to do with the report header or footer, but just with the pdf file.

You can do this using the pdf layout painter, or, if you're a real code monkey by editing the compound request in the text editor.
What you are looking for is the layout of the master page. You can specify just about anything to go on each and every page of your pdf by specifying the master page.
I don't know exactly what the approach would be using the painter, but in the code it looks like:
PAGELAYOUT=ALL, NAME='Page master',$
OBJECT=STRING, NAME='Page', TEXT='Page <ibi-page-number/>', POSITION=(3.5 11.5), MARKUP=OFF,
        WRAP=ON, DIMENSION=(6.0 0.2) FONT='ARIAL', COLOR=RGB(128 128 128), STYLE=BOLD, SIZE=9, $
When you put something like this in the compound definition, you'll get you footers independently of what's in your report.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Hi GamP

This is a very good solution that you mentioned.

Is this file default available in Webfocus or we can create it by specifying the values we want.

If the case is latter, can you provide me the sample code. Also how do you include this file in your report.

Also, is it supported in 7.1.7. I think the feature you are talking about (PDF Layout Painter) is not supported in 7.1.7

This message has been edited. Last edited by: Swap,


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Virtuoso
posted Hide Post
The PDF layout painter is available in 717 (and earlier releases).
And although the product does not include gui support for page masters yet, the syntax is present and will be correctly executed.
The feature of automatically counting pagenumbers (TEXT='Page of ') and being able to show them in the pdf file itself however is available starting with release 761. Before this release there is nothing available for page numbering.

I'd seriously consider upgrading to a 76 release, not just for this feature, but the product has evolved so much further that you must be able to take advantage of the numerous new features.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Unfortunately, my client will not allow the upgradation to 7.6

I also wanted the same thing. I was having a problem with setting the footer properties in case of compound reports using excel templates. Since it is not much developed in 7.1.7 I had suggested them to upgrade the version. But they didn't accepted.

Anyways,
Can you provide me a sample code for the usage of PAGELAYOUT. It will be really helpful. I am not able to see any example of this in the documentation.

Thanks


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Silver Member
posted Hide Post
Correct me if iam wrong. You have a compound report with 2 outputs in asingle page.
If you need to display only the page number in the Page footer, then you can include it as a part of your second report. and remove the footer message from the first one.


Webfocus 8002M, 8009
OS: Windows7
 
Posts: 33 | Registered: July 31, 2008Report This Post
Gold member
posted Hide Post
SureshKumar,

You are correct. But the problem coming up here is when the Table 1 output is large (say 30 records), i.e. the number of records exceeds one page then the footer won't come up in the first page.

This is defect raised in my report and its eating up a lot of time just for the footer issue.

The report code was exactly as you suggested Smiler.


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Virtuoso
posted Hide Post
An example of my code, that runs in 714, is (this includes the page master, but not the numbering):
-* File myfile.fex
-* Default Mode: ResourceLayout
COMPOUND LAYOUT
UNITS=IN, $
SECTION=section1, LAYOUT=ON, MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=A4, $
pagelayout=all, name='Page master', $
OBJECT=STRING, NAME='Page', TEXT='Page <ibi-page-number/>', POSITION=(3.5 11.5), MARKUP=OFF,
        WRAP=ON, DIMENSION=(6.0 0.2) FONT='ARIAL', COLOR=RGB(128 128 128), STYLE=BOLD, SIZE=9, $
component='DfltCmpt2', position=(0 0), dimension=(0 0), $

pagelayout=1, name='Layout page 1', $
component='report2', type=report, position=(0.417 0.927), dimension=(7.292 4.806), $
object=box, name='line1', position=(0.167 0.500), dimension=(7.792 0.042), backcolor=RGB(0 0 0), border-color=RGB(0 0 0), $
pagelayout=2, name='Layout page 2', $
component='report3', type=report, position=(0.510 1.042), dimension=(7.292 6.501), $
END

SET COMPONENT='DfltCmpt2'
-*component_type report
TABLE FILE CAR
" "
PRINT COUNTRY NOPRINT
IF RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
END

SET COMPONENT='report2'
-*component_type report
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
END

SET COMPONENT='report3'
-*component_type report
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
END
COMPOUND END

Hope this helps ....


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Thanks GamP

I'll try this out and let you know my results


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Gold member
posted Hide Post
Hi

I tried the solution that GamP gave but I am getting Agent Crashed error. I am not able to debug the cause of it.

Meanwhile, I was thinking that if there is any way I can find out the last record of the table and for that record no footer should be displayed. For other records, footer should be displayed.

Is there any way in webfocus to extract out the last record or a counter to know when the last record has reached based on which my header and footer will vary.

Thanks!


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Member
posted Hide Post
I have a related question. How do you limit the amount of space between the report data and the footer in a PDF (non-compound) report?

Per the documentation I've read, FOCUS puts two lines after the report data and then prints the footer, in cases where there is muliple pages of data. The report is configured with PRINTPLUS=ON and with the FOOTING BOTTOM.

Thanks. (FYI my member name Christ is pronounced like list)

quote:
Originally posted by GamP:
Ah, I think I now know what you're looking for.
Basically you just want a page number at the bottom of your page, and that has actually nothing to do with the report header or footer, but just with the pdf file.

You can do this using the pdf layout painter, or, if you're a real code monkey by editing the compound request in the text editor.
What you are looking for is the layout of the master page. You can specify just about anything to go on each and every page of your pdf by specifying the master page.
I don't know exactly what the approach would be using the painter, but in the code it looks like:
PAGELAYOUT=ALL, NAME='Page master',$
OBJECT=STRING, NAME='Page', TEXT='Page <ibi-page-number/>', POSITION=(3.5 11.5), MARKUP=OFF,
        WRAP=ON, DIMENSION=(6.0 0.2) FONT='ARIAL', COLOR=RGB(128 128 128), STYLE=BOLD, SIZE=9, $
When you put something like this in the compound definition, you'll get you footers independently of what's in your report.


Rel 7.6.9 HotFix #3, VMware on Windows 2003 Servers (4 GB RAM, 2 Intel Xenon Proc, NAS)
 
Posts: 1 | Registered: September 16, 2009Report 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     [CLOSED] Footer Problem

Copyright © 1996-2020 Information Builders