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.
I am having trouble with the positioning of the image. Fields are overlaying image. I have tried different X & Y positions but nothing seams to work. What am I doing wrong??? My Code TABLE FILE EMPLOYEE BY LAST_NAME NOPRINT BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK ON TABLE SUBHEAD "" HEADING """"ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, TOPMARGIN=0.500000, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ PAGEMATRIX=(3 5), ELEMENT=(4.000000 1.000000), GUTTER=(0.180556 0.000000), MATRIXORDER=VERTICAL, $ LABELPROMPT=OFF, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $ TYPE=TABHEADING, IMAGE=app/ppmoh.gif, POSITION=(+0.000000 +0.000000), $ TYPE=HEADING, LINE=1, BACKCOLOR='SILVER', STYLE=BOLD, $ TYPE=SUBHEAD, BACKCOLOR='GRAY', STYLE=BOLD, $ ENDSTYLE ENDThis message has been edited. Last edited by: Kerry,
What is it you are trying to do with that image? Is it supposed to appear on each of the labels? If so it should be in the TYPE=HEADING, not TYPE=TABHEADING. Also, FOCUS does not reserve a spot for the image to appear. You have to do that yourself by inserting blank lines or spot markers to move your fields out of the way of the image. Otherwise it just appears in the exact location you specify without regard to whether or not any other components (heading, fields, etc.) appear there as well.
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Yes Mickey, problem was specified (fields are overlaying the image or vice versa). The following example uses the same logic as above, only now with an image I do have:
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
HEADING
"</5"
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
TOPMARGIN=0.500000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
PAGEMATRIX=(3 5),
ELEMENT=(3.700000 2.000000),
GUTTER=(0.180556 0.000000),
MATRIXORDER=VERTICAL,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=HEADING,
IMAGE=smplogo1.gif,
POSITION=(+0.0000 +0.0000),
$
TYPE=HEADING,
LINE=7,
BACKCOLOR='SILVER',
STYLE=BOLD,
$
ENDSTYLE
END
Main differences here: 1. You have to allocate space for the image by adding heading lines, as per Darin. 2. You also have to provide more vertical space for the matrix cells. And with this code you get a nice matrix of data that has no more overlaps. Of course, you'll have to play around a bit with the values for your own situation.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I only want to the image to appear at the top of the page, not for every record. I tried several of the suggestion and my data is still overlaying the image.
TABLE FILE EMPLOYEE
-*TYPE=HEADING,LINE=2,STYLE=BOLD,BACKCOLOR='SILVER', $
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
ON TABLE SUBHEAD
""
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
TOPMARGIN=0.500000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
PAGEMATRIX=(3 5),
ELEMENT=(4.000000 1.000000),
GUTTER=(0.180556 0.000000),
MATRIXORDER=VERTICAL,
$
LABELPROMPT=OFF,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=TABHEADING,
IMAGE=app/ppmoh.gif,
POSITION=(+0.000000 +0.000000),
$
TYPE=HEADING,
LINE=1,
BACKCOLOR='SILVER',
STYLE=BOLD,
$
TYPE=SUBHEAD,
BACKCOLOR='GRAY',
STYLE=BOLD,
$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
I need pdf output for thisThis message has been edited. Last edited by: baxj89,
Set the top margin for the actual data. Position the image above the top margin by using negative positioning:
-* baxj89001.fex
TABLE FILE EMPLOYEE
BY LAST_NAME NOPRINT
BY FIRST_NAME NOPRINT
ON FIRST_NAME PAGE-BREAK
ON TABLE SUBHEAD
""
HEADING
"<FIRST_NAME <LAST_NAME"
"<ADDRESS_LN1"
"<ADDRESS_LN2"
"<ADDRESS_LN3"
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, TOPMARGIN=1.250000, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
PAGEMATRIX=(3 5), ELEMENT=(4.0 1.0), GUTTER=(0.180556 0.0), MATRIXORDER=VERTICAL, $
LABELPROMPT=OFF, $
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $
TYPE=TABHEADING, IMAGE=ias_logo.jpg, POSITION=(+0.0 -1.0), $
TYPE=TABHEADING, FONT='ARIAL', SIZE=1, $
TYPE=HEADING, LINE=1, BACKCOLOR='SILVER', STYLE=BOLD, $
TYPE=SUBHEAD, BACKCOLOR='GRAY', STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
Ideally I'd like to remove the report heading (ON TABLE SUBHEAD) because the first employee in the matrix is positioned one line below the others in the first matrix row, but removing the report heading removes the image as well. One solution would be to make the font size of the report heading (TABHEADING) very small - font size 1.
This message has been edited. Last edited by: Francis Mariani,
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
I applied the suggestions you made and it works great. If you would not mind I have a couple more questions. Is it possible to repeat the image on each page? & Is it possible to put a title between the image and the data? or if you could point me to the documentation on my questions.
Unfortunately, I don't think there's any documentation about applying images in a Matrix (Labels) type report, you could play around or open a case with IBI Tech Support.
There's the new PDF Composer tool in DevStudio that *may* help, but I'd be surprised it works with Matrix type reports.
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
will the Document Composer syntax handle the PAGEMATRIX syntax
No, but the composer is so much more than that, you can set overflow page options, boxes, lines, text, pictures. The only requirement is that each page section has to contain a report output section. Soooooooo simple it's unbelievable. I now use it in preference to the old compound syntax and admittedly I don't generally use PAGEMATRIX but I do find composer suits all of our end user requirements.
T at Nashville
p.s. I am glad to see that someones holding the fort - shame you couldn't make it - hope everything is OK.
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, 2004
It's called "Composer (Layout)" in the Dev Studio New Procedure dialog box.
Tony suggests writing code that is normally generated by the Composer tool, but it certainly is a good idea to try doing it with the GUI - this is new to v7.6.
COMPOUND LAYOUT PCHOLD FORMAT PDF
...
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2,...
...
SET COMPONENT='report1'
...
SET COMPONENT='report2'
...
COMPOUND 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
In 7.6.5, it is still called the PDF Layout Painter. You must access it as a 'new' program to see it in the dropdown or use the posts above as reference as code it by hand.