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     Help with PDF Formatting with borders or gridlines

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Help with PDF Formatting with borders or gridlines
 Login/Join
 
Platinum Member
posted
Is it possible to format a pdf report to look like the picture below. Or format it so it looks almost like the picture. I tried but I am not able to get the grid boxs around the Total Moved totals.



Thanks,
prodrigu

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


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
There is no "picture below". But, the short answer is YES!. The answer is probably shorter then the styling...

Show my the picture and I'll show you some code.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Doug,

When I open up the discussion I see the picture. Can you send me your email and I will send you the picture? Or is there another way to upload pictures besides using http://tinypic.com?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
"http://tinypic.com" is blocked here at my company. Please check you Private Message for my email address.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Doug,

I just sent you the picture of the pdf formatting I am trying to accomplish. Is there another tool I can use to upload images/pictures to this forum?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
I use dropbox.com and store my screenshots in a public folder - dropbox provides the image URL that you can use in the IMG tag in FocalPoint. Dropbox has a free option and I have not seen it being blocked...


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Thanks Prodrigu, I got the image. Let me check it out.

Francis: Could you pass on a link to a dropbox image for me to check?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Done this sort of thing before.

The only problem is the text "Total Moved"


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Waz,

Can you send me an example you have done without the text "Total Moved"?

Thanks,
prodrigu


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
I'll set one up.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
OK, here is a sample.

The idea is to have your totals as records in the data, so the grid can be turned on/off.

TABLE   FILE CAR
 SUM    
        COMPUTE CAR/A16   = ' ' ;
        COMPUTE MODEL/A24 = ' ' ;
        COMPUTE DEALER_COST/D7 MISSING ON  = MISSING ;
        COMPUTE SEATS/I3 MISSING ON        = MISSING ;
        COMPUTE RETAIL_COST/D7 MISSING ON  = MISSING ;
        COMPUTE REC_TYPE/A1 = 'X' ;

 BY     COUNTRY

 ON     TABLE HOLD AS TMP_CAR FORMAT ALPHA

END

-RUN

FILEDEF TMP_CAR DISK tmp_car.ftm (APPEND

-RUN

TABLE   FILE CAR
 PRINT  
        DEALER_COST
        SEATS
        RETAIL_COST
        COMPUTE REC_TYPE/A1 = 'D' ;

 BY     COUNTRY
 BY     CAR
 BY     MODEL

 ON     TABLE SAVE AS TMP_CAR 

END

-RUN

TABLE   FILE CAR
 SUM    
        COMPUTE C/A16 = ' ' ;
        COMPUTE M/A24 = ' ' ;
        DEALER_COST
        COMPUTE S/I3 MISSING ON  = MISSING ;
        RETAIL_COST
        COMPUTE REC_TYPE/A1 = 'T' ;

 BY     COUNTRY

 ON     TABLE SAVE AS TMP_CAR 

END

-RUN

FILEDEF TMP_CAR DISK tmp_car.ftm

-RUN

SET NODATA = ' '

DEFINE  FILE TMP_CAR
 DISP_COUNTRY/A10 = IF REC_TYPE EQ 'D' THEN COUNTRY ELSE ' ' ;
END

TABLE   FILE TMP_CAR
 PRINT  
        DEALER_COST   AS 'Dealer Cost'
        SEATS/I3S     AS 'Seats'
        RETAIL_COST   AS 'Retail Cost'

 BY     COUNTRY       NOPRINT
 BY     REC_TYPE      NOPRINT
 BY     DISP_COUNTRY  AS 'Country'
 BY     CAR           AS 'Car'
 BY     MODEL         AS 'Model'

-* ON     COUNTRY SKIP-LINE
 ON     TABLE SET STYLE * 
  PAGESIZE=A4,ORIENTATION=PORTRAIT, BORDER=OFF, SIZE=9, GRID=OFF, $
  TYPE=TITLE, BORDER=LIGHT, $
  TYPE=DATA, BORDER=LIGHT, $
  TYPE=DATA  , COLUMN=P01, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
  TYPE=DATA  , COLUMN=P02, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
  TYPE=DATA  , COLUMN=P03, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
  TYPE=DATA  , COLUMN=P05, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
  TYPE=DATA, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, WHEN=REC_TYPE EQ 'X', $
 ENDSTYLE

 ON     TABLE PCHOLD FORMAT PDF 

END

-RUN


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
WAZ,

I was able to get Total Moved positioned correctly. It will look alot clearner once you add a dummy row before the totals.

  
TABLE FILE CAR
SUM    
COMPUTE CAR/A16   = ' ' ;
COMPUTE MODEL/A24 = ' ' ;
COMPUTE DEALER_COST/D7 MISSING ON  = MISSING ;
COMPUTE SEATS/I3 MISSING ON        = MISSING ;
COMPUTE RETAIL_COST/D7 MISSING ON  = MISSING ;
COMPUTE REC_TYPE/A1 = 'X' ;
BY COUNTRY
ON TABLE HOLD AS TMP_CAR FORMAT ALPHA
END
-RUN

FILEDEF TMP_CAR DISK tmp_car.ftm (APPEND
-RUN

TABLE FILE CAR
PRINT  
DEALER_COST
SEATS
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'D' ;
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SAVE AS TMP_CAR 
END
-RUN

TABLE FILE CAR
SUM    
COMPUTE C/A16 = ' ' ;
COMPUTE M/A24 = 'Total Moved:' ;
DEALER_COST
COMPUTE S/I3 MISSING ON  = MISSING ;
RETAIL_COST
COMPUTE REC_TYPE/A1 = 'T' ;
BY COUNTRY
ON TABLE SAVE AS TMP_CAR 
END
-RUN

FILEDEF TMP_CAR DISK tmp_car.ftm
-RUN

SET NODATA = ' '

DEFINE FILE TMP_CAR
DISP_COUNTRY/A10 = IF REC_TYPE EQ 'D' THEN COUNTRY ELSE ' ' ;
END

TABLE FILE TMP_CAR
PRINT  
DEALER_COST   AS 'Dealer Cost'
SEATS/I3S     AS 'Seats'
RETAIL_COST   AS 'Retail Cost'
BY COUNTRY  NOPRINT     
BY REC_TYPE NOPRINT     
BY DISP_COUNTRY  AS 'Country'
BY CAR           AS 'Car'
BY MODEL         AS 'Model'
ON TABLE SET STYLE * 
	PAGESIZE=A4,
	ORIENTATION=PORTRAIT, 
	BORDER=OFF, 
	SIZE=9, 
	GRID=OFF, $
TYPE=TITLE, BORDER=LIGHT, $
TYPE=DATA, BORDER=LIGHT, $
TYPE=DATA, COLUMN=P01, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P02, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P03, BORDER-LEFT=OFF, BORDER-BOTTOM=OFF, JUSTIFY=RIGHT, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, COLUMN=P05, BORDER-BOTTOM=OFF, WHEN=REC_TYPE EQ 'T', $
TYPE=DATA, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, WHEN=REC_TYPE EQ 'X', $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF 
END
-RUN


Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats
 
Posts: 121 | Location: California | Registered: June 19, 2008Report This Post
Expert
posted Hide Post
Just be aware that if the colum to get Total Moved is small, or a numeric, it will cause problems.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
This is very much possible with 7.7.03. You should be able to use new features like HEADALIGN=BODY, BORDERALL=LIGHT, COLPSAN=n, etc..
For subtotals, use COMPUTEs.


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     Help with PDF Formatting with borders or gridlines

Copyright © 1996-2020 Information Builders