PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Printing labels WDetat55
Printing labels WDetat55
Débuté par Piet van Zanten, 18 aoû. 2003 18:59 - 2 réponses
Posté le 18 août 2003 - 18:59
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
Posté le 19 août 2003 - 05:54
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
Posté le 19 août 2003 - 13:21
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.