PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Printing labels WDetat55
Printing labels WDetat55
Started by admin, Aug., 18 2003 6:59 PM - 2 replies
Posted on August, 18 2003 - 6:59 PM
Does anyone have a sugestion how to skip a number of labels at the beginning of a label type report in Wdetat? This is convenient for re-using sheets that have some labels left. So a user can enter "start printing at label#" before printing labels.
Thanks.

http://www.vzs.nl
Posted on August, 19 2003 - 5:54 AM
G'day Piet
A simple solution would be to prepare a file to print from with x number of blank records preceeding real records where x is the number of labels to skip.
Regards
Al
Posted on August, 19 2003 - 1:21 PM
I found a wonderful solution myself:
WDetat uses a variable _.NumEti to track the number of labels printed. You can change this variable. However: you cannot change it in the report opening code, since _.NumEti has apparently not been declared yet (error 'unknown variable' occurs). Therefor I change it in the 'after reading' section, using a flag (bSkip) to execute it just once.
< >>
global
bSkip is boolean
LabelStart is int
bSkip=True
//pass the starting label in a parameter
LabelStart=_pParam1
<< After reading >>
if bSkip then
bSkip=False
_.NumEti=LabelStart-1
end
This works fine.
Does anyone have a sugestion how to skip a number of labels at the beginning of a label type report in Wdetat? This is convenient for re-using sheets that have some labels left. So a user can enter "start printing at label#" before printing labels.
Thanks.