Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]Document with Static text.
Go
New
Search
Notify
Tools
Reply
  
[Solved]Document with Static text.
 Login/Join
 
Guru
posted
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
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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 7 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Guru
posted Hide Post
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
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Reply With QuoteReport This Post
<JG>
posted
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
 
Reply With QuoteReport This Post
Guru
posted Hide Post
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
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6124 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved]Document with Static text.

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