| Reports |
| 4.1 Stampare N volte la stessa etichetta. |
| Luciano (Doc) |
|
(D) E' possibile stampare N copie della stessa etichetta nello stesso report? (R) Si è possibile. Per farlo aggiungete, nella tabella contenente i records , un campo numerico chiamato ct_quantita. Inserite questo campo anche nel report e rendetelo invisibile. Inserite nel modulo del report la seguente routine:
Private Sub Corpo_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount < Me.ct_quantita Then
Me.NextRecord = False
PrintCount = PrintCount + 1
Else
PrintCount = 0
End If
End Sub
A questo punto non vi resta che immettere il numero di volte che volete stampare ogni etichetta, nel campo ct_quantita, e mandare in stampa il report.Attenzione questa routine non gestisce il caso in cui ct_quantita=0. |