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.
not sure if HEXBYT is only for html but not for pdf. should I work with CR and LF? any idea how to achieve this or any links for documentation (which I couldn't find yet).
many thanksThis message has been edited. Last edited by: Tamra,
WebFOCUS 8.1.0.5 (Server + Client) Windows 2012 R2 BW, Oracle, Excel, PDF, HTML
thank you for the suggestion. I do not get it to work. here my example with the car data base:
DEFINE FILE CAR
CRLF/A2= HEXBYT(13,'A1') | HEXBYT(10,'A1');
COUNTRY_NEWLINE_CAR/A100= COUNTRY |CRLF| CAR ;
END
TABLE FILE CAR
PRINT COUNTRY_NEWLINE_CAR
ON TABLE PCHOLD FORMAT PDF
END
instead of a line break I get some spaces and a square. Maybe that worked with your version 4.3.6, but I do not have this available
WebFOCUS 8.1.0.5 (Server + Client) Windows 2012 R2 BW, Oracle, Excel, PDF, HTML
Example: Displaying an Alphanumeric Field With Line Breaks in a PDF Report The following request defines an alphanumeric named ANLB field with a semicolon (in an EDCDIC environment) or a circumflex (in an ASCII environment) in the middle. The CTRAN function then replaces the semicolon or circumflex with a carriage return character and stores this string in a field named ANLBC. On the report output, this field displays on two lines:
DEFINE FILE EMPLOYEE ANLB/A40 ='THIS IS AN An FIELD;WITH A LINE BREAK.'; ANLBC/A40 = CTRAN(40, ANLB, 094, 013 , ANLBC); END TABLE FILE EMPLOYEE PRINT LAST_NAME ANLBC WHERE LAST_NAME EQ 'BLACKWOOD' ON TABLE HOLD FORMAT PDF ON TABLE SET STYLE * TYPE=REPORT,LINEBREAK='CR',$ ENDSTYLE END
For PDF you need to define your linebreak character
quote:
Using StyleSheet attributes, you can display An (character) and AnV (varchar) fields that contain line breaks on multiple lines in a PDF or PostScript report. Line breaks can be based on line-feeds, carriage-returns, or a combination of both. If you do not add these StyleSheet attributes, all line-feed and carriage-return formatting within these fields will be ignored, and all characters will be displayed on one line that wraps to fit the width of the report.
-------------------------------------------------------------------------------- Top of page --------------------------------------------------------------------------------
xx Syntax: How to Display An and AnV Fields Containing Line Breaks on Multiple Lines TYPE=REPORT,LINEBREAK='type',$ where:
REPORT Is the type of report component. TYPE must be REPORT. Otherwise an error will result. 'type' Specifies that line breaks will be inserted in a report based on the following: LF inserts a line break after each line-feed character found in all An and AnV fields.
CR inserts a line break after each carriage-return character found in all An and AnV fields.
LFCR inserts a line break after each combination of a line-feed character followed by a carriage-return character found in all An and AnV fields.
CRLF inserts a line break after each combination of a carriage-return character followed by a line-feed character found in all An and AnV fields.
Note: The report output must be formatted as PDF or PostScript.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013