IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Goofy heading text in PDF Report
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
I have created a report in PDF format and the text below appears in the report header.

Provider:Cooper, Joseph

Here is the current code:
TABLE FILE PFRGRID
PRINT
MEASURE/A35 AS 'PERFORMANCE DATA'
IALTDESC2/A8 AS 'Indicator,Type'
. . . . .
COMPUTE HEADER3/A200 = IF TABPAGENO EQ 1 THEN 'Provider: ' || PHYSICIAN ELSE ' '; NOPRINT
. . . . .
ON TABLE PCHOLD FORMAT PDF
END

I have tried to put the string 'Provider:' into a dialogue manager variable and use DEFINE to manipulate the names and get a result such as:
Provider: Cooper, Joseph

I am very new to using style sheets. Is it possible that PDF is a bad guy here?

Any ideas? Roll Eyes

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


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Correction to my previous post:
Actually the text displays like this:

Provider:Cooper, Joseph


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Correction to my previous post:
Actually the text displays like this:

Provider:Cooper, Joseph

Anyway, there are about six (6) spaces after
the comma, and preceding the first name.


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
If you just print it out in the report does it have the same effect?


WebFOCUS 7.6.1 Win 2003 Test -7.6.5
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
If I change the output format to EXL2K the entire line shifts to the left


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
Tom,

How is your PHYSICIAN field being compiled, a concatenation of other fields? If so then your concatenation is at fault and not your style sheet.

A single pipe '|' character is a soft concatentation and will concatenate fields without compressing white space to nothing, whereas a double pipe '||' is a hard concatenation that will compress white space to nothing.

If your PHYSICIAN field is made up of PHYSICIAN_LAST/A12 and PHYSICIAN_FIRST/A12 then you could concatenate them as you wish by -

PHYSICIAN/A26 = PHYSICIAN_LAST || (', ' | PHYSICIAN_FIRST);

However, if that is not how your field is compiled then please provide more info.

T


Old FOCUS coders never die, they just become functionally stable. (Tony A Wink)

Current Client: WebFOCUS 7.6.2 Win XP SP2/IIS 6/Tomcat 5.5 - MRE / BID MS SQL / Oracle - DevStudio 7.6.6 7.1.6
Local: WebFOCUS 7.6.6 7.1.6 on Win XP SP2/Apache/Tomcat 5.5 - Self Service
 
Posts: 2862 | Location: England U.K. (Freelance) | Registered: April 08, 2004Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Tom

if you put your code example or output examples between
 [CODE]  
[/CODE] it would be better readable.




Frank

prod: WF 7.6.5 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.5 on the same platform and databases,IE7

 
Posts: 1640 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
SQUEEZE=ON
go have a read of the 2 excellent articles by Mickey Grackin on PDF
part 1
and
part 2




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2630 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tom,

  
-* File tomsweb4.fex
TABLE FILE CAR
PRINT
     SALES
     COMPUTE HEADER/A100 = IF TABPAGENO EQ 1 THEN 'First: '|COUNTRY || ( ', '|CAR ) || ( ', '|MODEL ) ELSE ' '; NOPRINT
BY COUNTRY
BY CAR
BY MODEL
ON COUNTRY PAGE-BREAK
HEADING
"Page <TABPAGENO "
" "
"<HEADER "
" "
ON TABLE SET PAGE-NUM ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END


Notice:
SQUEEZE=ON
Strong concatenation
When you invoke TABPAGENO WF will not display page numbers, so, if you want them you have to code it in the HEADING.
Be sure to have the HEADING placed after the COMPUTE statement.


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
danny, i have no problems with the tabpageno in the footer, with squeeze on.
what i do have is a problem with the total page count
My point, to danny below, is that the

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




DevStu 767; wintell 767; Unix 765,Oracle: /// iplanet; Dev 765 tomcat 6;///MRE/BID/PMF
 
Posts: 2630 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Susannah,

Of course you can place TABPAGENO in the FOOTING.
As for the total number of pages, I added this to my example and it worked fine:
  
FOOTING BOTTOM
"Page <TABPAGENO of <TABLASTPAGE "


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Danny,
I have added your suggestion to my fex and I still see that there is no space between Provider: and Drname.

Code captioned in []:
[COMPUTE HEADER3/A200 = IF TABPAGENO EQ 1 THEN 'Provider: ' |(' ') || PHYSICIAN ELSE ' '; NOPRINT]

It displays like this:
Provider:Cooper,[about 6 spaces]Joseph
Provider:Smith,[about 6 spaces]Greg
Provider:Hasselkus,[about 6 spaces]Herman

I would like to see it display like this:
Provider:[1 or 2 spaces] Hasselkus,[1 space]Herman

Thanks Sweating


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
I also coded this:
[
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.152778,
RIGHTMARGIN=0.152778,
TOPMARGIN=0.138889,
BOTTOMMARGIN=0.138889,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
]
Confused


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tom,

If you see 6 spaces between physician's last name and first name it shows that that is how it is stored in the field PHYSICIAN... So I would take a look at that first. Maybe you should use the function SQUEEZ.

So, your code could be:
IF TABPAGENO EQ 1 THEN 'Provider: ' | SQUEEZ(n, PHYSICIAN, 'An') ELSE ' ';

Where n is the length of PHYSICIAN.

To check the spaces, do a dry run with font Courier New.


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Danny,

I tried the IF TABPAGENO EQ 1 THEN 'Provider: ' | SQUEEZ(n, PHYSICIAN, 'An') ELSE ' '; code and
I have gotten the header display that I want. However, I am using the stylesheet settings below, I am getting a second page (i.e. page 1.2) with this display:

HEADER3

Provider: Cooper, Joseph
Provider: Cooper, Joseph

So, as I have coded, 'ON PHYSICIAN PAGE-BREAK REPAGE', this happens for every doctor in the report. Ergo, my report has grown from 13 pages to 26 pages.

Could this be an issue with my stylesheet?

[
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.152778,
RIGHTMARGIN=0.152778,
TOPMARGIN=0.138889,
BOTTOMMARGIN=0.138889,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
]
??? Red Face


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Tom,

When you get pages numbers such as 1.2 that means your information does not fit on one page wide and therefore WebFOCUS created a second page to the RIGHT to place the rest of the information on and numbered it 1.2. It will do this for every page therefore doubling your pages.

You may want to look at adjusting your report so it fits on one page width. This might be as easy as shrinking the font, reducing the margins or changing the ORIENTATION to LANDSCAPE.


Thanks!

Mickey

WebFOCUS 7.1.3 /// Windows 2003 Server /// Oracle Data Sources /// HTML, PDF, EXCEL Output
 
Posts: 933 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
I solved this problem by realizing that I forgot to end the line with NOPRINT!

COMPUTE HEADER3/A40 = IF TABPAGENO EQ 1 THEN 'Provider: ' | SQUEEZ(30, PHYSICIAN, 'A30') ELSE ' '; NOPRINT

Sometimes the eyes just glaze over Cool


Tomsweb
WebFOCUS 5.3.3, 7.1.3, 7.4.1, 7.6
Windows, Aix 5.2, MVS, VM
WebFOCUS’ Developer Studio and ESRI/GIS mapping capabilities
 
Posts: 145 | Location: Pennsylvania | Registered: July 06, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Good to hear it worked out to be that simple.


Thanks!

Mickey

WebFOCUS 7.1.3 /// Windows 2003 Server /// Oracle Data Sources /// HTML, PDF, EXCEL Output
 
Posts: 933 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Goofy heading text in PDF Report

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.