Focal Point
line

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6181006542

September 06, 2007, 10:38 AM
<John.lee>
line
Hi
I want to draw a line in my report ,
can anyone help me doing in this.
Thanks in advance
September 06, 2007, 11:05 AM
Leah
As in a subfooting or on a break in the sort? The UNDER-LINE option on a by field will give you a line.


Leah
September 06, 2007, 11:13 AM
<John.lee>
No i want to devide the box with lines to get more number of boxses as the data can fit in individual box ,i want to make some thing like table in my report.
September 06, 2007, 11:31 AM
Francis Mariani
John,

What box do you want to divide with lines?

Could you please be more specific, what is the report format, HTML, PDF, EXL2K? If it's HTML, you can turn the GRID ON in the style sheet.

One example of lines and boxes:
TABLE FILE CAR
PRINT
*
HEADING
"WEBFOCUS REPORT"
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
GRID=ON, FONT='ARIAL', SIZE=8, $
END


Another example:
TABLE FILE CAR
PRINT
*
HEADING
"WEBFOCUS REPORT"
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLESHEET *
BORDER=1, BORDER-COLOR=SILVER,
FONT='ARIAL', SIZE=8, $
END



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
September 06, 2007, 02:24 PM
Leah
As asked, what do you want to do?

TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY CAR
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET STYLE *
TYPE=REPORT,BORDER=HEAVY,BORDER-STYLE=GROOVE,BORDER-COLOR=GREEN,$
TYPE=TITLE, BORDER=LIGHT, BORDER-STYLE=RIDGE, BORDER-COLOR=RED, $
TYPE=DATA, BORDER=LIGHT, BORDER-STYLE=SOLID, BORDER-COLOR=BLUE,$
ENDSTYLE
END


Leah
September 10, 2007, 11:48 AM
Darin Lee
This is an old-style approach, as the new version of WF is supposed to have line/box-draw capabilities , but it's tried an true.
I have some images in our image library that are called HLINE, VLINE (for horizontal line and vertical line) and BOX. I can insert these images anywhere on the page with good precision and stretch them long and wide to whatever size and thickness I need. The image is placed in HEADING or FOOTING.
I also use UNDER_LINE for dynamic placement on sort fields and sometimes resort to defining a field that contains x number of underscores and placing it in subheads, subfoots, etc. This also looks nice in the finished output. (but is controlled by font size which is a pain sometimes, because 10 underscores in 12 point bold is much longer than 10 underscores in 8 point.)
I should mention that i only use these for PDF output. Locations are not necessarily respected for HTML output. But it makes excellent, professional-looking forms with boxes, grids, lines, etc.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
January 29, 2008, 07:56 AM
Jérény Deidda
I want to draw an horizontal line on my "HEADING".

Is there a solution to add this line on the STYLE * part of my report like this:

  
TYPE=HEADING, LINE=24, ... MY HORIZONTAL LINE,$


Thanks.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
January 29, 2008, 08:11 AM
focuzsambit
i wld suggest you to migrate to -HTMLFORM and do all formating over there....


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 29, 2008, 08:15 AM
Jérény Deidda
I have ton generate a PDF report, I can't switch to HTML.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
January 29, 2008, 08:45 AM
Tony A
Jérény,

Try -

TYPE=HEADING, LINE=24, item=nn, STYLE=+UNDERLINE, $

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 
January 29, 2008, 08:50 AM
Jérény Deidda
I already tryed this but the line isn't complete, that underlines the content of the line but I want o draw an horizontal line on all the page.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
January 29, 2008, 08:51 AM
focuzsambit
try with Border option...
like
  
TYPE=HEADING,BORDER-TOP=OFF,BORDER-BOTTOM=LIGHT,BORDER-LEFT=OFF,BORDER-RIGHT=OFF,$

AND cntrol the thickness...i don't recall the exact syntax...see in GUI...

If that does not fit in...create a GIF and position it....

tks/sam


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 29, 2008, 08:58 AM
focuzsambit
What abt this idea....
  
TABLE FILE CAR
PRINT 
     COUNTRY
ON TABLE SUBHEAD
"aaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
TYPE=TABHEADING,
     BORDER-BOTTOM=LIGHT,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     COLOR='WHITE',
$
ENDSTYLE
END


if you don't wanna go this way....go for image embedding.... Razzer


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
January 29, 2008, 09:05 AM
Jérény Deidda
Thx focuzsambit, but it's isn't thant I want. I will try to create a GIF.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
January 29, 2008, 09:16 AM
Jérény Deidda
Here is the solution I looked for:

object=box, name='line1', position = (1.0 1.0), dimension = (10.0 0.005), backcolor=NAVY, border-color=NAVY,$


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
January 29, 2008, 10:11 AM
Leah
Ah an underline across the page. In the old days I would create a blank field and print it as the last field on the line to get the underline to spread across the page without using some fancy code. It was such a pain to get the underline long enough in the 80 column partiioned data set days. Of course sometimes that is why the code still does what it does because of the grandfathering of the code.


Leah
January 29, 2008, 11:31 AM
mgrackin
When was OBJECT=BOX added to the WebFOCUS Style Sheet syntax?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
January 29, 2008, 12:06 PM
mgrackin
I found the following on IBI Tech Support by doing a search on 'OBJECT=BOX'.

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

Has anyone seen this before?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
January 29, 2008, 12:09 PM
Francis Mariani
Searched the 1446 page Creating Reports With WebFOCUS Language v7.6 documentation and did not find object=box.

The only object stuff I found were the usual object=text|field styling subtype and some HTML Active report styling like TYPE=REPORT,OBJECT=MENU, etc.

I did find this ACROSS related thing that may come in handy:

Controlling Underlines for ACROSS Objects

SET ACROSSLINE= (ON|OFF|SKIP)


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
January 29, 2008, 12:13 PM
Francis Mariani
I can't see what that does and how it relates to "How to remove the extra line spacing in the SUBFOOT?".

I changed the position and dimensions and it still looks the same.

And what does "How to remove the extra line spacing in the SUBFOOT" mean?


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
January 29, 2008, 12:27 PM
Tony A
Francis,

I don't think the article was meant to be, in any way, about the OBJECT=BOX. More likely to be the TYPE=FOOTING, LINE=1, POSITION=(0, 10.5) used to move the text to the edge of the paper.

I think the object=box was used to highlight the area concerned?

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 
January 29, 2008, 12:34 PM
mgrackin
IBI is hiding something. Take a look at the following code. I am able to run this with WF713.

TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLESHEET *
TYPE=REPORT, COLUMN=COUNTRY, WRAP=1.00,$
TYPE=REPORT, COLUMN=CAR , WRAP=1.00,$
TYPE=REPORT, COLUMN=RCOST , WRAP=1.25,$
TYPE=REPORT, COLUMN=DCOST , WRAP=1.25,$
TYPE=REPORT, NAME='BOX001', OBJECT=BOX, POSITION=(0.200 0.400),
DIMENSION=(8.10 5.00),
BORDER-COLOR=RED, BORDER=HEAVY,
BACKCOLOR=RGB(212 212 212),$
TYPE=REPORT, NAME='BOX002', OBJECT=BOX, POSITION=(1.40 0.425),
DIMENSION=(1.20 4.75),
BORDER-COLOR=BLUE, BORDER=HEAVY,
BACKCOLOR=WHITE,$
TYPE=REPORT, NAME='BOX003', OBJECT=BOX, POSITION=(2.70 0.425),
DIMENSION=(1.40 4.75),
BORDER-COLOR=GREEN, BORDER=HEAVY,
BACKCOLOR=YELLOW,$
ENDSTYLE
END

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


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
January 30, 2008, 01:34 AM
Piipster
The only reference I could find to "object=box" was for the pdf layout painter.

Interesting.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
January 30, 2008, 01:50 AM
susannah
"how to remove the extra line spacing in the subfoot" my reaction as well, Frankie. Its the hoch-gibberish i was talking about yesterday... i'm reading this manual from cover to cover ... its *loaded* with it...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
January 30, 2008, 02:51 AM
Tony A
Susannah,

Put the manual down and step away ....

Then go and live a little Wink

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 
January 30, 2008, 03:36 AM
susannah
hey...you been talking to Mike????




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
January 30, 2008, 09:21 AM
mgrackin
I did more testing and apparently OBJECT=STRING and OBJECT=IMAGE work in the WF StyleSheet as well.

Try the code below:

TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLESHEET *
TYPE=REPORT, TOPMARGIN=1.25,$
TYPE=REPORT, COLUMN=COUNTRY, WRAP=1.00,$
TYPE=REPORT, COLUMN=CAR , WRAP=1.00,$
TYPE=REPORT, COLUMN=RCOST , WRAP=1.25,$
TYPE=REPORT, COLUMN=DCOST , WRAP=1.25,$
TYPE=REPORT, NAME='STR001', OBJECT=STRING,
TEXT='Draft Copy. Do Not Distribute &DATE',
POSITION=(2.25 7.00),
FONT='ARIAL', SIZE=24,$
TYPE=REPORT, NAME='GIF001', OBJECT=IMAGE,
IMAGE='nistbanner.gif',
POSITION=(0.225 0.225),
DIMENSION=(3.00 0.50),$
TYPE=REPORT, NAME='BOX001', OBJECT=BOX,
POSITION=(0.175 0.175),
DIMENSION=(8.15 10.65),
BORDER-COLOR=RED, BORDER=15,
BACKCOLOR=SILVER,$
TYPE=REPORT, NAME='BOX002', OBJECT=BOX,
POSITION=(1.40 1.425),
DIMENSION=(1.20 4.75),
BORDER-COLOR=BLUE, BORDER=HEAVY,
BACKCOLOR=WHITE,$
TYPE=REPORT, NAME='BOX003', OBJECT=BOX,
POSITION=(2.70 1.425),
DIMENSION=(1.40 4.75),
BORDER-COLOR=GREEN, BORDER=HEAVY,
BACKCOLOR=YELLOW,$
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
January 30, 2008, 09:29 AM
Alan B
Very nice Mickey. Also try FORMAT DHTML.....


Alan.
WF 7.705/8.007