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] Border issue in PDF with OVER

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Border issue in PDF with OVER
 Login/Join
 
Platinum Member
posted
Hi,

On running the below code, you get borders around all data values.

But, when you make 'AS name' as Blank for the fields, the borders around the data values are incomplete.

Code that works fine,
TABLE FILE CAR
PRINT
CAR MODEL OVER
BODYTYPE SEATS
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=DATA,BORDER=LIGHT,$
ENDSTYLE
END

Code having border issue,
TABLE FILE CAR
PRINT
CAR AS '' MODEL AS '' OVER
BODYTYPE AS '' SEATS AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=DATA,BORDER=LIGHT,$
ENDSTYLE
END


Thanks,
Hari
WF-769

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


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Expert
posted Hide Post
Borders in PDF can always be a challenge!

Does this do what you need?

TABLE FILE CAR
PRINT CAR AS ' '
      MODEL AS '' OVER
      BODYTYPE AS ' '
      SEATS AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=DATA, BORDER=LIGHT, $
ENDSTYLE
END

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
Platinum Member
posted Hide Post
No Tony, i need the borders between the values.
Is there any way to get it?

-Hari
WH-769


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Expert
posted Hide Post
Hi Hari,

Has this issue been resolved on your side?

I passed this one to our internals and was told that Tony's code should work fine to give what you need, just be careful that there should be spaces between AS ' ' (inside the single quote).

TABLE FILE CAR
PRINT CAR AS ' '
      MODEL AS '' OVER
      BODYTYPE AS ' '
      SEATS AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=DATA, BORDER=LIGHT, $
ENDSTYLE
END


Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Member
posted Hide Post
Try something like this..

Its a bit crude, but this code forcing each column to have a border.
The COMPUTE NULL fields should resolve the first column appearing with a blank left border, and by making the top, bottom, and left borders white, it won't appear on your report.

 
TABLE FILE CAR
PRINT
COMPUTE NULL/A1=''; AS '' CAR AS '' MODEL AS '' OVER
COMPUTE NULL2/A1=''; AS '' BODYTYPE AS '' SEATS AS ''
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$

TYPE=DATA,
COLUMN=N1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='WHITE',
     BORDER-BOTTOM-COLOR='WHITE',
     BORDER-LEFT-COLOR='WHITE',
     BORDER-RIGHT-COLOR='BLACK',
$
TYPE=DATA,
COLUMN=N2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
$
TYPE=DATA,
COLUMN=N3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
$
TYPE=DATA,
COLUMN=N4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='WHITE',
     BORDER-BOTTOM-COLOR='WHITE',
     BORDER-LEFT-COLOR='WHITE',
     BORDER-RIGHT-COLOR='BLACK',
$
TYPE=DATA,
COLUMN=N5,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
$
TYPE=DATA,
COLUMN=N6,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
$
ENDSTYLE
END



Erfan
WF 7.6.5 / BID / Info Assist / Report Caster


WF 7.6.5 / BID / Info Assist / Report Caster - HTML/PDF/EXCEL
 
Posts: 18 | Registered: September 27, 2007Report This Post
Platinum Member
posted Hide Post
Hey Kerry,

The borders are seen , but they appear as seperate blocks. I want them to look like a single report.

Erfan, same with your code too.
Is there anyway or remove the TITLES space or get the data values together?


Thankyou both for your responses.

-Hari
WF-769
 
Posts: 165 | Registered: September 29, 2008Report This Post
Guru
posted Hide Post
Hari, maybe this is what you wanted? I try using grid instead of border

TABLE FILE CAR
PRINT
CAR/A15 AS '' MODEL AS '' OVER
BODYTYPE/A15 AS '' SEATS AS ''
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
-*SQUEEZE=ON,
GRID=ON,
ORIENTATION=PORTRAIT,
$
-*TYPE=DATA,BORDER=LIGHT,$
ENDSTYLE
END
  


Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Platinum Member
posted Hide Post
Hey Hua,

Works perfectly. Never used GRID with PDF.
Looking for this solution for long time.

Thanks a lot.

-Hari


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report 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] Border issue in PDF with OVER

Copyright © 1996-2020 Information Builders