From 5ed26f14c8ec4b4cfe1b7e6ea9f646a63739ffe7 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 14 Nov 1995 09:11:14 +0000 Subject: [PATCH] Corretta richiesta di posizionamento all'inizio di ogni stampa e non all'inizio di ogni record. git-svn-id: svn://10.65.10.50/trunk@2142 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/Attic/cg1400.cpp | 8 ++++++-- cg/cg1400.cpp | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/cg/Attic/cg1400.cpp b/cg/Attic/cg1400.cpp index 668d0dfaf..98c42008d 100755 --- a/cg/Attic/cg1400.cpp +++ b/cg/Attic/cg1400.cpp @@ -327,7 +327,7 @@ char TStampa_deleghe_IVA::frequenza_versamenti(long firm, int year) const bool TStampa_deleghe_IVA::print_deleghe() { bool ok = printer().open(); - + bool arng = FALSE; TForm f(_profilo, format("%05ld",_codice)); TCursor& cur = *f.cursor(); @@ -388,8 +388,12 @@ bool TStampa_deleghe_IVA::print_deleghe() delega.put("S6", tributo); } - if (i > 0) f.set_arrange(FALSE); ok = f.print(-1); // Stampa solo il record corrente + if (!arng) + { // Scopo di cio' e' far si' che esegua il + f.set_arrange(arng); // posizionamento solo la prima volta che chiama + arng = TRUE; // f.print() + } if (!ok) break; bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu); diff --git a/cg/cg1400.cpp b/cg/cg1400.cpp index 668d0dfaf..98c42008d 100755 --- a/cg/cg1400.cpp +++ b/cg/cg1400.cpp @@ -327,7 +327,7 @@ char TStampa_deleghe_IVA::frequenza_versamenti(long firm, int year) const bool TStampa_deleghe_IVA::print_deleghe() { bool ok = printer().open(); - + bool arng = FALSE; TForm f(_profilo, format("%05ld",_codice)); TCursor& cur = *f.cursor(); @@ -388,8 +388,12 @@ bool TStampa_deleghe_IVA::print_deleghe() delega.put("S6", tributo); } - if (i > 0) f.set_arrange(FALSE); ok = f.print(-1); // Stampa solo il record corrente + if (!arng) + { // Scopo di cio' e' far si' che esegua il + f.set_arrange(arng); // posizionamento solo la prima volta che chiama + arng = TRUE; // f.print() + } if (!ok) break; bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu);