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] Wrap in PDF[WF 7702]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Wrap in PDF[WF 7702]
 Login/Join
 
Gold member
posted
I tried to create a header in PDF with colspan, I am able to create borders using the grid , colspan them except I am not able to wrap a subheading item. Any one please help me.
This I tried with 7702 Version.

-* File CAR.fex
DEFINE FILE CAR
dummy/A1 = 'A';
END
TABLE FILE CAR
PRINT
     CAR.COMP.CAR AS ''
     CAR.BODY.DEALER_COST AS ''
     CAR.SPECS.LENGTH AS ''
     CAR.SPECS.FUEL_CAP AS ''
BY dummy NOPRINT

ON dummy SUBHEAD
"dummy1"
"dummy1<+0> "
"dummy2<+0> <+0>dummy  why is it not wrapping :( "
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=DATA,
     COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=REPORT,
COLUMN=DEALER_COST,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=REPORT,
COLUMN=FUEL_CAP,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=SUBHEAD,
     BY=1,
     BORDERALL=LIGHT,
     BACKCOLOR=RGB(0 204 255),
     HEADALIGN=BODY,
	 WIDTH=0.5,
	 WRAP=0.5,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=4,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=3,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,

$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=3,
     COLSPAN=2,
     JUSTIFY=CENTER,
	 WIDTH=0.5,
	 WRAP=0.5,
	 BACKCOLOR='RED',
$
ENDSTYLE
END



  

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


WebFOCUS 7.6.9
Windows
Excel, HTML, PDF
 
Posts: 71 | Registered: April 17, 2009Report This Post
<FreSte>
posted
I had the same a while ago. I "moved" the free text in the subheading to a defined field and all was OK.

-Fred-

DEFINE FILE CAR
dummy/A1 = 'A';
dummy2/A80 = 'Dummy: this is wrapping .. ';
END
TABLE FILE CAR
PRINT
     CAR.COMP.CAR AS ''
     CAR.BODY.DEALER_COST AS ''
     CAR.SPECS.LENGTH AS ''
     CAR.SPECS.FUEL_CAP AS ''
BY dummy NOPRINT

ON dummy SUBHEAD
"dummy1"
"dummy1<+0> "
"dummy2<+0> <+0><dummy2"
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=DATA,
     COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=REPORT,
COLUMN=DEALER_COST,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=REPORT,
COLUMN=FUEL_CAP,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=SUBHEAD,
     BY=1,
     BORDERALL=LIGHT,
     BACKCOLOR=RGB(0 204 255),
     HEADALIGN=BODY,
	 WIDTH=0.5,
	 WRAP=0.5,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=4,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=3,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,

$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=field,
     ITEM=1,
     COLSPAN=2,
     JUSTIFY=CENTER,
	 WIDTH=0.8,
	 WRAP=0.8,
	 BACKCOLOR='RED',
$
ENDSTYLE
END
 
Report This Post
Gold member
posted Hide Post
Thank you for the help. I tried with your code and it worked. I liked your DEFINE Statement Smiler

Thanks & Regards,
Srinivasan Munuswamy

quote:
Originally posted by FreSte:
I had the same a while ago. I "moved" the free text in the subheading to a defined field and all was OK.

-Fred-

DEFINE FILE CAR
dummy/A1 = 'A';
dummy2/A80 = 'Dummy: this is wrapping .. ';
END
TABLE FILE CAR
PRINT
     CAR.COMP.CAR AS ''
     CAR.BODY.DEALER_COST AS ''
     CAR.SPECS.LENGTH AS ''
     CAR.SPECS.FUEL_CAP AS ''
BY dummy NOPRINT

ON dummy SUBHEAD
"dummy1"
"dummy1<+0> "
"dummy2<+0> <+0><dummy2"
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=DATA,
     COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=REPORT,
COLUMN=DEALER_COST,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=REPORT,
COLUMN=FUEL_CAP,
	 WIDTH=0.4,
	 WRAP=0.4,
$
TYPE=SUBHEAD,
     BY=1,
     BORDERALL=LIGHT,
     BACKCOLOR=RGB(0 204 255),
     HEADALIGN=BODY,
	 WIDTH=0.5,
	 WRAP=0.5,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=4,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=3,
     JUSTIFY=CENTER,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,

$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     BY=1,
     LINE=3,
     OBJECT=field,
     ITEM=1,
     COLSPAN=2,
     JUSTIFY=CENTER,
	 WIDTH=0.8,
	 WRAP=0.8,
	 BACKCOLOR='RED',
$
ENDSTYLE
END


WebFOCUS 7.6.9
Windows
Excel, HTML, PDF
 
Posts: 71 | Registered: April 17, 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     [SOLVED] Wrap in PDF[WF 7702]

Copyright © 1996-2020 Information Builders