diff --git a/cg/cg4400.cpp b/cg/cg4400.cpp index 2c8677318..35f76b116 100755 --- a/cg/cg4400.cpp +++ b/cg/cg4400.cpp @@ -10,6 +10,8 @@ static TString256 TMP; inline CG4400_application& app() { return (CG4400_application&)main_app(); } +#define RIGHE_FOOTER 1 // Righe da saltare nel footer per evitare di scrivere sulla perforazione + bool CG4400_application::filter_func (const TRelation * r) { TLocalisamfile& mov = r->lfile(LF_MOV); @@ -2083,6 +2085,7 @@ bool CG4400_application::preprocess_page(int file, int counter) //printer().footerlen(0); if (!_mov_empty) printer().formfeed(); merge_export_file(t,FALSE,TRUE); + //printer().footerlen(RIGHE_FOOTER); _intesta_liq = FALSE; reset_print(); remove(t); @@ -2356,6 +2359,7 @@ print_action CG4400_application::postprocess_page (int file, int counter) _intesta_liq = TRUE; //printer().footerlen(0); merge_export_file(_t,FALSE,TRUE); + //printer().footerlen(RIGHE_FOOTER); _intesta_liq = FALSE; remove(_t); } @@ -2685,6 +2689,7 @@ void CG4400_application::liq_b0_settato() _intesta_liq = TRUE; //printer().footerlen(0); merge_export_file(f,FALSE,TRUE); + //printer().footerlen(RIGHE_FOOTER); _intesta_liq = FALSE; remove(f); } @@ -3141,6 +3146,7 @@ void CG4400_application::no_movimenti() //printer().footerlen(0); merge_export_file(f,FALSE,TRUE); printer().formfeed(); + //printer().footerlen(RIGHE_FOOTER); _intesta_liq = FALSE; remove(f); } @@ -3197,6 +3203,7 @@ void CG4400_application::stampa_liq_mesi_succ() printer().formfeed(); //printer().footerlen(0); merge_export_file(t,FALSE,TRUE); + //printer().footerlen(RIGHE_FOOTER); _intesta_liq = FALSE; remove(t); } @@ -3227,7 +3234,7 @@ void CG4400_application::send_message(char tipo, const TFilename& nome, int mese if (_riep_liq) ss.add('X'); else ss.add(' '); - ss.add(_size_header); + ss.add(_size_header+RIGHE_FOOTER); TMessage liq (app, "RCL", ss); liq.send(); @@ -3273,7 +3280,7 @@ bool CG4400_application::set_print(int n) else _stampa_width = 198; if (_stampa_len != 0) printer().formlen(_stampa_len); - printer().footerlen(1); + printer().footerlen(RIGHE_FOOTER); //Se stampa di prova l'utente indica data_da e data_a if (_tipo_stampa == 1) {