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     [CLOSED]Duplex printing

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Duplex printing
 Login/Join
 
Virtuoso
posted
Suppose I have a report (held in PDF format) destined to be printed on both sides of the paper.

If the report has PAGE-BREAK on a sort variable, is there syntax to make each sort-break section begin on a right (odd-numbered) page, so the sections will come out on separate sheets?

This message has been edited. Last edited by: <Emily McAllister>,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
Hi j.g.

I don't think that this is controllable from within WF. For PDF output you would require something like
the ORIENTATION setting, e.g. landscape,. I have scoured the quick ref and dev report manuals (as have you probably) and can't find anything of note.

Sounds like an NFR to me.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Here's an idea that might work. We generate multiple PDF reports in the same FEX and control the page numbers. If you could intersperse TABLE commands tha print a blank page, that might work. Research the FOCFIRSTPAGE variable. It works fine and increments from 1 in the same FEX as long as each TABLE command is outputting to the same PDF i.e. no TABLE/HOLD/SAVE, or it sets back to 1.

Here's a snapshot of some code we use to control our PDF output. In this FEX, multiple reports are generated with ..FORMAT PDF OPEN and the last with CLOSE. In our case, we manually reset the page number to what we wanted bertween TABLEs:

-************************************************************
-* PREPARE TO DISPLAY REPORT IN PDF FORMAT *
-************************************************************
-PDF
-***********
-SET &FIRSTPAGE = IF &RPTOPTION EQ 'CMB' AND &RPT_TYPE EQ 'Request'
- THEN 3 ELSE
- IF &RPTOPTION EQ 'CMB' AND &RPT_TYPE EQ 'Receipt'
- THEN 4 ELSE 1 ;
SET FOCFIRSTPAGE = &FIRSTPAGE
-RUN
TABLE FILE WADS10H1
:


WebFOCUS 7.6.11, WINDOWS, HTML, PDF, EXCEL
 
Posts: 77 | Location: Baltimore | Registered: May 31, 2006Report This Post
Guru
posted Hide Post
Tony-
In WF 7.1, the amper variable &FOCNEXTPAGE is available. If one would test it for odd/even (after subtracting 1), then one could choose to print a blank page or not.

Here is a ref: http://techsupport.informationbuilders.com/sps/81681091.html

This message has been edited. Last edited by: jimster06,
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
Jimster,

That may be true, but true duplex printing is not catered for in most application software as it is, generally, an attribute of the printing preferences.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
Here is another reference:

Skip page if BY field ends in an uneven number of pages.

http://techsupport.informationbuilders.com/sps/93451061.html

This might be the answer.
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Virtuoso
posted Hide Post
It's been a decade, and nothing has addressed this. I think it deserve support.

Here's my suggestions for syntax to support production of documents intended for two-sided printing.

1. A new SET:
SET DUPLEX[-PRINT] = OFF or ON (default being OFF)

2. A new modifier for PAGE-BREAK:
BY ... (or ON ...) PAGE-BREAK [NEW-SHEET]


A plain PAGE-BREAK (without the NEW-SHEET keyword) would behave as at present, flipping to the next page (the next "side" in a duplex document) when triggered.

When NOSPLIT generates a new-page, it's a "plain" page-break.

If DUPLEX-PRINT is OFF, the NEW-SHEET keyword is ignored.

If DUPLEX-PRINT is ON, then NEW-SHEET will cause the page-break, whenever triggered, to flip to the next sheet's first side (i.e., to the next odd-numbered page).

When multiple levels of sort-break are triggered simultaneously, a sheet break takes precedence over a page break.


Perhaps WF also needs syntax for even- and odd-page headings and footings, and for content to be rendered on the totally blank even-numbered page if a sheet-break occurs on an odd-numbered page.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
Awesome time-traveling, j.gross!


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Expert
posted Hide Post
Have you considered keeping tract of the page numbers and alter your page break accordingly?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<Emily McAllister>
posted
Hello J.Gross,

I spoke to one of our programmers about this and this is what he told me:

I found the following suggestion from another FocalPoint discussion:
http://forums.informationbuild...71057331/m/469105554


The code below seems to work, it adds a full page of subhead that has nothing on it. The column headings will show up though. They will also have to play around with the number of blank lines to put in SUBHEAD to be just enough to fill an entire page.

TABLE FILE GGSALES
SUM DOLLARS BUDDOLLARS
BY REGION PAGE-BREAK 
BY PRODUCT
BY DATE

ON REGION SUBHEAD
" "   
"</70  "
WHEN TABPAGENO NE 1 AND  IMOD(TABPAGENO,2,'I2') EQ 0

HEADING
"PAGE: <TABPAGENO "
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', 
             SIZE=10, STYLE=NORMAL, $
ENDSTYLE
END


We also have a project in programming for this feature which was last updated September 21st of this year. I don't have any more information on the status, however.

I hope this helps!

Emily McAllister
Focal Point Moderator
 
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     [CLOSED]Duplex printing

Copyright © 1996-2020 Information Builders