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     [SOLVED] PDF Output with looong TABHEADING

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PDF Output with looong TABHEADING
 Login/Join
 
<FreSte>
posted
Hi all,

Suppose I have a fex with a TABHEADING which can be quite long. Printing to HTML it's fine, but when printing to PDF,
I just can't get the TABHEADING formatted (squeezed over more lines).

The whole HEADING / TABHEADING text is generated dynamically and written to a temp-file which is -INCLUDE'd in my end fex.

The only thing I can think of is to put all this text in DEFINE'd fields and break it in peaces of let's say 100 characters.
Hopefully there's a smarter/easier way getting this done .

Thanks for the help.

-Fred-



TABLE FILE CAR
  SUM DEALER_COST
  BY COUNTRY

 HEADING
"  "
"Period <+0>: 01-01-2011 (za) t/m 31-12-2011 (za)"
"  "
ON TABLE SUBHEAD
" "
"Print date<+0>: 01-12-2011<+0> <+0>11:39"
" "
"Parameters 1 <+0>: Qwww / Fadfsd / Asfsfff / Erererrr / Ee / Err / Ere / Ere / Err / Erereeerrr / Erere Fdfg / Fgfgfgso / Sdf / Dfgd / Edf / Eurail / Ssfg / Sg / Sf / Sfsdf / Ggfg / Ffgg / Fgs / Sdfg / Fg / Sdfg / Lokaal / Sdfg / Fgfg / Asdfasdf / Asdf / Asdf / Asdf / Asdf / Dgh / Dfgh / Fgk / Fk / Wer / Fk / Fk Qwer / Qwer / Wer  "
"Parameters 2 <+0>: XX / YY / ZZ / QQ "
"Parameters 3 <+0>: AB / ABC / DEF / GTG / HTE / WR / WRT / BGBGHFMT / FSR / RFD / RT / RE  "

ON TABLE SET STYLE *
TYPE=REPORT, FONT=VERDANA, UNITS=PTS, $
TYPE=TABHEADING, OBJECT=TEXT, ITEM=1, STYLE=BOLD, WIDTH=120,$
TYPE=HEADING, OBJECT=TEXT, ITEM=1, STYLE=BOLD, WIDTH=120,$
TYPE=TABHEADING, OBJECT=TEXT, ITEM=2, COLOR=RGB(100 100 100) ,$
TYPE=HEADING, OBJECT=TEXT, ITEM=2, COLOR=RGB(100 100 100) ,$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END

This message has been edited. Last edited by: <FreSte>,
 
Report This Post
Expert
posted Hide Post
Have you looked at MARKUP=ON in the stylesheet ?

You will need the define, but after that you can use formatting tags to control the text.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
<FreSte>
posted
No, I haven't looked at MARKUP=ON, will do that tomorrow.
I was already afraid I had to split the lines in a DEFINE; a stylesheet setting for this would be nice
Thanks for pointing me this way

Cheers,

-Fred-
 
Report This Post
<FreSte>
posted
Solution is less worse than I expected

Btw, not sure what the max length of a variable may be, but for now this is OK.

-Fred-

-SET &P1 = 'Qwww / Fadfsd / Asfsfff / Erererrr / Ee / Err / Ere / Ere / Err / Erereeerrr / Erere Fdfg / Fgfgfgso / Sdf / Dfgd / Edf / Eurail / Ssfg / Sg / Sf / Sfsdf / Ggfg / Ffgg / Fgs / Sdfg / Fg / Sdfg / Lokaal / Sdfg / Fgfg / Asdfasdf / Asdf / Asdf / Asdf / Asdf / Dgh / Dfgh / Fgk / Fk / Wer / Fk / Fk Qwer / Qwer / Wer  ';
-SET &P2 = 'XX / YY / ZZ / QQ ';
-SET &P3 = 'AB / ABC / DEF / GTG / HTE / WR / WRT / BGBGHFMT / FSR / RFD / RT / RE  ';

DEFINE FILE CAR
  P1/A1024 = '&P1 ' ;
  P2/A1024 = '&P2 ' ;
  P3/A1024 = '&P3 ' ;
END

TABLE FILE CAR
  SUM DEALER_COST
  BY COUNTRY

 HEADING
"  "
"Period <+0>: 01-01-2011 (za) t/m 31-12-2011 (za)"
"  "
ON TABLE SUBHEAD
" "
"Print date<+0>: 01-12-2011<+0> <+0>11:39"
" "
"Parameters 1 <+0>: <P1"
"Parameters 2 <+0>: <P2"
"Parameters 3 <+0>: <P3

ON TABLE SET STYLE *
TYPE=REPORT, FONT=VERDANA, UNITS=PTS, $
TYPE=TABHEADING, OBJECT=FIELD, ITEM=1,  WRAP=450 ,$


TYPE=TABHEADING, OBJECT=TEXT, ITEM=1, STYLE=BOLD, WIDTH=120,$
TYPE=HEADING, OBJECT=TEXT, ITEM=1, STYLE=BOLD, WIDTH=120,$
TYPE=TABHEADING, OBJECT=TEXT, ITEM=2, COLOR=RGB(100 100 100) ,$
TYPE=HEADING, OBJECT=TEXT, ITEM=2, COLOR=RGB(100 100 100) ,$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
 
Report 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     [SOLVED] PDF Output with looong TABHEADING

Copyright © 1996-2020 Information Builders