[CLOSED] Having trouble with PDF margins/report title space.
I have the following report to be displayed in a frame of compound PDF report. 1) I am having trouble getting rid the top margin space believed to be space for the title. 2) Don't know why the first cell has no data.
SET TITLE = OFF
DEFINE FILE EMPLOYEE
EMP_CNT/I2=IF EMP_ID EQ LAST EMP_ID THEN 0 ELSE EMP_CNT + 1;
ROW_CNT/I2 = EMP_CNT/4;
COL_CNT/I2=IMOD(EMP_CNT,4,'I2');
END
TABLE FILE EMPLOYEE
SUM
LAST_NAME AS '' OVER
ADDRESS_LN1 AS '' OVER
ADDRESS_LN2 AS ''
BY ROW_CNT NOPRINT
ACROSS COL_CNT NOPRINT
ON ROW_CNT SKIP-LINE
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.000000,
TOPMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=4,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
STYLE=BOLD,
$
TYPE=TITLE,STYLE=-UNDERLINE,$
ENDSTYLE
END
Thanks.
HuaThis message has been edited. Last edited by: Kerry,
Developer Studio 7.6.11 AS400 - V5R4 HTML,PDF,XLS
March 10, 2009, 07:27 AM
JeffWard
Ok, I'm not alone... I'm having a similiar problem with PDF. There is way more white space on my reports (portrait or landscape) and the top and bottom margin settings appears to be ignored. I'll be interested to see what thoughts folks have on this one.
WebFOCUS 7.7.0.3 Wintel/Windows SQL Server 2008 Output: PDF, HTML, XLS
March 10, 2009, 08:02 AM
Tony A
A problem that is oft mentioned.
Search on PRINTPLUS.
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
March 10, 2009, 09:47 AM
gregv
Hua, There are probably cleaner ways to do this but here are the changes I made to your code (notice the negative sign) to eliminate the top margin:
TABLE FILE EMPLOYEE . . ON TABLE SET NEWLAYOUT ON . . TYPE=DATAMATRIX, POSITION =(0.000000 -0.170000), DIMENSION=(10.000000 10.000000), $ ENDSTYLE END
IHTH, Greg
Greg
current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11
Of course there is no mention of "NEWLAYOUT" and "DATAMATRIX" in the Developer Studio Help documentation, nor in the 39 PDF documents I have accumulated that pertain to WF 7.6.1 - 7.6.5.
One document pops up when searching Tech Support for "DATAMATRIX" while three do for "NEWLAYOUT".
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
March 10, 2009, 11:56 AM
RSquared
I don't have any solutions for yout first problem, however as far as the blank column, if you change your defines to this /* DEFINE FILE EMPLOYEE EMP_CNT/I2=IF EMP_ID EQ LAST EMP_ID THEN 0 ELSE IF LAST EMP_ID EQ '' THEN 0 ELSE EMP_CNT + 1; ROW_CNT/I2 = EMP_CNT/4; COL_CNT/I2=IMOD(EMP_CNT,4,'I2'); /* it will eliminate your problem.
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
March 10, 2009, 02:18 PM
ypatel
quote:
Originally posted by RSquared: I don't have any solutions for yout first problem, however as far as the blank column, if you change your defines to this /* DEFINE FILE EMPLOYEE EMP_CNT/I2=IF EMP_ID EQ LAST EMP_ID THEN 0 ELSE IF LAST EMP_ID EQ '' THEN 0 ELSE EMP_CNT + 1; ROW_CNT/I2 = EMP_CNT/4; COL_CNT/I2=IMOD(EMP_CNT,4,'I2'); /* it will eliminate your problem.
Regarding blank first cell: I think the first cell is blank because the first record you reading probably has blank value in LAST_NAME field. pls check the detail record results of your query without the 'BY' and 'ACROSS'.
-Yogesh Patel ------------------------------------------------------------------------ PROD: WF 764 on Linux Apache tomcat v5.5 DEV: WF 768 on Linux
March 11, 2009, 09:39 AM
RSquared
Yogesh,
The problem of the blank first cell is caused by the Define for the EMP_CNT. The first record it reads sets the value to 1 and therefor there is no data to put in Row = 0 & Col = 0. I ran a print of the data as well as print off the Emp_ID, Row_CNT, COL_cnt, before I posted the reply
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
March 11, 2009, 10:18 AM
JeffWard
Thanks! PRINTPLUS solved my problem.
WebFOCUS 7.7.0.3 Wintel/Windows SQL Server 2008 Output: PDF, HTML, XLS
March 16, 2009, 11:56 AM
Hua
Thank you everyone for your responses.
I was away for a little while. I just did a quick check with your solutions, and my #1 problem is getting close but not #2.
I have to do some catching up with my work, so I'll be back to explain more. Thanks.