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     Placing image on 2nd page of PDF report [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Placing image on 2nd page of PDF report [SOLVED]
 Login/Join
 
Gold member
posted
I have a PDF report and I wish to place an image on the 2nd page. I thought I could use this...

TYPE=TABHEADING,
IMAGE=(Box_Img),
POSITION=(0.0 11.25),
SIZE=(1.5 0.5),
$

... to force the image onto the 2nd page. Changing the value of x.xx in POSITION=(0.0 x.xx) allows me to move the image up and down on the 1st page, but if x.xx exceeds 7.25 (to force it down), the image disappears and does not appear on the 2nd page.

Any clues?

Thanks,
George

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Expert
posted Hide Post
I would COMPUTE a field and then use it in a WHEN statement, something like this:

COMPUTE IMG_FLAG/A3 = IF TABPAGENO EQ 2 THEN 'YES' ELSE 'NO'; NOPRINT

...

TYPE=TABHEADING,
IMAGE=(Box_Img),
POSITION=(0.0 0.25),
SIZE=(1.5 0.5),
WHEN=IMG_FLG EQ 'YES',
$


No guarantees as I didn't try it, but I don't see why it wouldn't work EXCEPT for the fact that there is only one TABHEADING ( a report heading, it only appears at the top of the first page). Try HEADING with my suggested code.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
quote:
Originally posted by Francis Mariani:
I would COMPUTE a field and then use it in a WHEN statement, something like this:

COMPUTE IMG_FLAG/A3 = IF TABPAGENO EQ 2 THEN 'YES' ELSE 'NO'; NOPRINT

...

TYPE=TABHEADING,
IMAGE=(Box_Img),
POSITION=(0.0 0.25),
SIZE=(1.5 0.5),
WHEN=IMG_FLG EQ 'YES',
$
No guarantees as I didn't try it, but I don't see why it wouldn't work EXCEPT for the fact that there is only one TABHEADING ( a report heading, it only appears at the top of the first page). Try HEADING with my suggested code.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks Francis,

I tried your suggestion, using both TABHEADING, and changing to HEADING, but was not successful. The file is somewhat complex, so your solution may have gotten "lost" in the complexity and may have worked in a simpler file.

To save time, I broke the report into a compound report of 2 pdfs each representing a different page. That solved my problem since the signature on the "second" page is really on a first pdf page, if that makes sense.

I'm intrigued by seeing a WHEN clause in the style sheet. I going to explore this more when I get time.

Thanks again for your suggestion,
George


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Expert
posted Hide Post
George,

Here's a working example. I neglected to mention that any field used in a WHEN clause must be included in the report, including TABPAGENO.

-* File when1.fex

TABLE FILE CAR
SUM
SALES
TABPAGENO NOPRINT

BY COUNTRY 
BY CAR
BY MODEL

ON COUNTRY PAGE-BREAK

HEADING
" "
" "
"CAR SALES"
" "

ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
TYPE=HEADING, WHEN=TABPAGENO EQ 2, COLOR=RED, $
TYPE=HEADING, WHEN=TABPAGENO EQ 2, IMAGE=trillium0.gif, $
ENDSTYLE
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks for the example.

Gives me something to play around with and hopefully learn from.

Just curious, did you get this tip from a book? I'd be interested in the title.

George


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 70 | Registered: April 27, 2012Report This Post
Expert
posted Hide Post
The book is my brain Big Grin


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
[SOLVED]


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     Placing image on 2nd page of PDF report [SOLVED]

Copyright © 1996-2020 Information Builders