Focal Point
[Solved]Document with Static text.

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

December 24, 2010, 10:34 AM
Majid Jeddi
[Solved]Document with Static text.
Hi,

I have a A4 pre-printed document acting like check thta contains Static text. The user is taking a copy of that and filling it with some information such as the name, the date the ammount and other data.
This data is found in a sql table.
Could somebody tell me how can i build that document with static text in webfocus and then fill it with data from that sql table.

This will shield the user from doing that manually.

Thanks.

This message has been edited. Last edited by: Majid Jeddi,


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
December 24, 2010, 10:46 AM
GamP
Well, you can always use the heading for your fixed text, and you can use spot-markers (the "<") followed by the fieldname to your sql data fields.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
December 25, 2010, 06:30 AM
Majid Jeddi
Hi,

The fixed text is every where on the A4 page. Some is in the middle of the page some on the right some of the top and some on the left bottom.
While designing this page i am only able to place this text in eith the page header of on the page footer. no way to place it in the body.

Regards.


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
December 26, 2010, 04:30 AM
<JG>
Here's a clue.

A HEADING can contain any text, can span the width of the page can span to length of the page
The STYLESHEET allows Horizontal postioning.

TABLE FILE CAR
""
"*"
"***"
"*****"
"*******"
"*********"
"***********"
"*************"
"***************"
"*****************"
"*******************"
"**"
"**"
"**"
"A MERRY CHRISTMAS"
"To Every One"
BY COUNTRY NOPRINT
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE= HEADING, OBJECT=TEXT,ITEM=1,COLOR=BLUE,$
TYPE= HEADING, LINE=2,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 5.0,$
TYPE= HEADING, LINE=3,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.9,$
TYPE= HEADING, LINE=4,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.80,$
TYPE= HEADING, LINE=5,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.70,$
TYPE= HEADING, LINE=6,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.60,$
TYPE= HEADING, LINE=7,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.50,$
TYPE= HEADING, LINE=8,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.40,$
TYPE= HEADING, LINE=9,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.30,$
TYPE= HEADING, LINE=10,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.20,$
TYPE= HEADING, LINE=11,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.10,$
TYPE= HEADING, LINE=12,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.9,$
TYPE= HEADING, LINE=13,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.9,$
TYPE= HEADING, LINE=14,OBJECT=TEXT,ITEM=1,COLOR=BLUE,POSITION = 4.9,$
TYPE= HEADING, LINE=15,OBJECT=TEXT,ITEM=1,COLOR=RED,POSITION = 2.0,$
TYPE= HEADING, LINE=16,OBJECT=TEXT,ITEM=1,COLOR=GREEN,POSITION = 3.7,$
ENDSTYLE
END
December 26, 2010, 04:48 AM
Majid Jeddi
Thanks

JG and Thanks also to Gamp whom i missunderstood.

and Merry Christmas to all.

Majid


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
December 28, 2010, 03:47 PM
Waz
You can also place static text, lines and boxes on the page via the stylesheet.

DEFINE FILE CAR
 Blank/A1 WITH COUNTRY = ' ' ;
END
TABLE FILE CAR
PRINT Blank AS ''
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE NOPAGE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLESHEET *
TYPE=REPORT, OBJECT=BOX   , NAME='BOX001', POSITION=(0.200 0.400),DIMENSION=(1.10 3.00),BORDER-COLOR=RED, BORDER=HEAVY,BACKCOLOR=RGB(212 212 212),$
TYPE=REPORT, OBJECT=STRING, NAME='text1', TEXT='Text1', POSITION=(0.200 0.400), MARKUP=OFF, WRAP=ON, DIMENSION=(4.234 0.528), font='ARIAL', color=RGB(0 0 0),  size=10, $
TYPE=REPORT, OBJECT=STRING, NAME='text2', TEXT='Text2', POSITION=(0.200 1.400), MARKUP=OFF, WRAP=ON, DIMENSION=(4.234 0.528), font='ARIAL', color=RGB(0 0 0),  size=10, $
TYPE=REPORT, OBJECT=STRING, NAME='text3', TEXT='Text Line 3', POSITION=(2.200 2.400), MARKUP=OFF, WRAP=ON, DIMENSION=(4.234 0.528), font='ARIAL', color=RGB(0 0 0),  size=10, $
ENDSTYLE
END



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!