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.
Hi, I am generating a report page-wise in HTML.On the page which has sufficient data to fill the entire page , the report prints properly with header and footer,but for the page where there are only few lines of data to display the page becomes small and dosent fit the screen and hence when i try to print the report using a printer i get multiple pages(Page 1 ,page 2) on the same print paper.I want each page(page 1 , page 2) to come on seaprate print paper when i print them using the printer.
However if you MUST print from HTML, and this is not supported on older browsers.
DEFINE FILE CAR
CNTR/I4 WITH COUNTRY = CNTR + 1;
PAGE_BREAK/A123 WITH COUNTRY = IF CNTR EQ 1 THEN ' ' ELSE
'<p style="page-break-before:always;"></p>';
END
TABLE FILE CAR
PRINT CAR MODEL
BY COUNTRY
ON COUNTRY SUBHEAD
"<PAGE-BREAK"
END
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Atleast some pages are showing up properly in print-preview(i.e All pages that come before <P_BREAK is encountered).But when the Page breaks["<P_BREAK") from that page onwards my footer [FOOTING BOTTOM) gets displaced onto the next page and this happens for every subsequent page.In HTML it displays properly without any problem.
Aditya, can you take your last sentence (starting with Atleast... and put it outside of your closing code tag, so we can read it better. i want to know to do this , too, so i'm really interested in how you're doing. i had thought that page-break only worked in between tables...but thanks to Alan's tip, i've got a whole new idea now.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I just referred back to some old code that uses this technique. In fact I use a span tag rather than a p tag, to do with the fact that p is a block item and span an in-line item within HTML.
When the going got really bad - that company would not allow me to use PDF - I had to SAVE the table request and then use a DM loop with HTMLFORM BEGIN/END, READ the SAVE file and manually create the HTML, counting the lines and page breaking at the appropriate moment. So no, this technique is not perfect for everything.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
SET STYLEMODE=PAGED
SET LINES= 24
TABLE FILE EMPLOYEE
PRINT *
END
in v716 and it didn't work at all. the doc doesn't actually say that this setting is respected by printers.... Does anyone actually have a working example?This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I checked out the PAGED option with one of our local DB2 tables.
SET STYLEMODE=PAGED TABLE FILE TBXXXX PRINT * END
Works like a charm !! Thx Prairie !!
Sandeep Mamidenna.
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
Maybe we're mixed-up as to what to expect with STYLEMODE=PAGED.
quote:
PAGED - In WebFOCUS, displays report output in multiple HTML tables where each table is a separate report page. These smaller HTML files are retrieved from the Web server quicker than a single large file.
STYLEMODE=PAGED creates separate HTML TABLEs for each page of the report, and are downloaded to the web browser one at a time, thus displaying a lot faster than one HTML TABLE for whole report. This will be more evident for a very long report.
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