Focal Point
mailing lable problem

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

September 08, 2005, 07:43 PM
K Mann
mailing lable problem
I'm have a problem generating mailing labels. Page 2 and on seems to be skipping the first label block and then overprinting the first block on the last row. Using WF 5.2.3


 TABLE FILE SQLOUT
BY
TOWN_DESC NOPRINT
BY
FACILITY_NAME NOPRINT
BY
OPER_NUMBER NOPRINT REPAGE

ON OPER_NUMBER PAGE-BREAK
HEADING
""""
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.50000,
ORIENTATION=PORTRAIT,
PAGEMATRIX=(3 10),
ELEMENT=(2.625000 1.000000),
GUTTER=(0.180556 0.000000),
MATRIXORDER=HORIZONTAL,
LABELPROMPT=OFF,
$

This message has been edited. Last edited by: <Maryellen>,


K Mann
WF 7.1.4 Win
September 08, 2005, 10:36 PM
Leah
Having never printed labels as headings, not sure what would help. However are you just using the heading to print the label data. If so, have you just tried doing the fileds and a define for the dash mark.
SUM
TOWN_DESC IN 1
DASH IN +1
FACILITY_CODE IN +1 OVER
FACILITY_NAME IN 1 OVER
OPERATION_NAME IN 1 DASH IN +1 OPER_NUMBER IN +1
BY,,,,,

Of course any labels I've done we always end up routing to a mainframe printer so I will admit I'm not familiar with PDF output.
September 09, 2005, 10:29 AM
Tony A
Works fine in 5.3.2 using your basic code but pointing at a sample database (EMPLOYE2)
-


TABLE FILE EMPLOYE2
LIST
FIRST_NAME
LAST_NAME
ADDRESS_LN1
ADDRESS_LN2
ADDRESS_LN3
MORE
FILE EMPLOYE2
MORE
FILE EMPLOYE2
MORE
FILE EMPLOYE2
END
HOLD AS MYDATA
-*EXIT
TABLE FILE MYDATA
BY LIST NOPRINT
BY FIRST_NAME NOPRINT
BY LAST_NAME NOPRINT
BY ADDRESS_LN1 NOPRINT
BY ADDRESS_LN2 NOPRINT
BY ADDRESS_LN3 NOPRINT REPAGE

ON ADDRESS_LN3 PAGE-BREAK
HEADING
""""ON TABLE SET PAGE-NUM NOPAGE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='A4',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.50000,
ORIENTATION=PORTRAIT,
PAGEMATRIX=(3 10),
ELEMENT=(2.625000 1.000000),
GUTTER=(0.180556 0.000000),
MATRIXORDER=HORIZONTAL,
LABELPROMPT=OFF,
$
ENDSTYLE
END

This message has been edited. Last edited by: <Maryellen>,



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 
September 16, 2005, 05:55 PM
K Mann
Thanks
November 01, 2005, 03:35 PM
DLR
K Mann
Did you get this to work in 5.2.3. We are experiencing the same problem and are using the exact same settings only we are working with 2 column labels.
November 01, 2005, 06:48 PM
JimRice
Here is another example that creates one label per page based on a counter. It also prints a header label with the date and number of labels.

SET PAGE-NUM=NOPAGE
-*
DEFINE FILE EMPLOYE2
T_CNTR/I6 WITH EMP_ID = T_CNTR + 1;
A_CNTR/A6 WITH EMP_ID = EDIT (T_CNTR);
T_LINE1/A30 WITH EMP_ID = '******************************';
T_LINE2/A30 WITH EMP_ID = '* *';
T_LINE3/A30 WITH EMP_ID = '* ' | A_CNTR | ' *';
T_LINE4/A30 WITH EMP_ID = '* *';
T_LINE5/A30 WITH EMP_ID = '******************************';
CNT/I6 WITH EMP_ID = 1;
END
-*
TABLE FILE EMPLOYE2
SUM CNT NOPRINT
SUM T_LINE1 AS ''
OVER T_LINE2 AS ''
OVER T_LINE3 AS ''
OVER T_LINE4 AS ''
OVER T_LINE5 AS ''
BY T_CNTR NOPRINT
WHERE RECORDLIMIT EQ 65
ON T_CNTR PAGE-BREAK
ON TABLE PAGE-BREAK AND SUBHEAD
" "
"FORUM002_LABELS"
"&DATE"
"# OF LABELS: <CNT "
" "
ON TABLE SET ONLINE-FMT PDF
-*
-* use your same settings with size=10
-*

I had to remove the settings to get this reply to post. It also removes spaces in the t_line? fields in the define statements.

Jim