diff --git a/sc/sc2400.cpp b/sc/sc2400.cpp index 46627863c..f0f495c54 100755 --- a/sc/sc2400.cpp +++ b/sc/sc2400.cpp @@ -69,8 +69,8 @@ bool TStampaSol_application::print_selected() const long items = c.items(); for (long i=0; i < items; i++) if (print_all || s.checked(i)) { -// if (one_printed) -// printer().formfeed(); + if (one_printed) + printer().formfeed(); fc= i; // muove il cursore alla posizione corrente @@ -82,8 +82,8 @@ bool TStampaSol_application::print_selected() analfabeti++; } -// if (one_printed) -// printer().formfeed(); + if (one_printed) + printer().formfeed(); printer().close(); if (analfabeti > 0) { @@ -157,7 +157,7 @@ int TStampaSol_application::print_sol() } if (one_printed) - printer().formfeed(); + f.ultima_pagina(); return one_printed ? 1 : 0; } diff --git a/sc/sc2401.cpp b/sc/sc2401.cpp index 6c059d6f0..926411fb1 100755 --- a/sc/sc2401.cpp +++ b/sc/sc2401.cpp @@ -892,6 +892,8 @@ TESSL_form::TESSL_form(const TESSL_mask& m, bool gesval, short id_datalim, short _lingua = m.get_prof_lang(); _who = m.get_who(); + _stampa_esp = m.get_bool(F_STAMPESP); + TCursor_sheet& cs = m.cur_sheet(); _cursore = cs.cursor(); @@ -915,6 +917,7 @@ TESSL_form::TESSL_form(const TESSL_mask& m, bool gesval, short id_datalim, short TToken_string f(flags.prompt()); _in_valuta = gesval && f.get_char(0) == 'X'; // Il profilo e' in valuta se c'e' il flag di valuta _fincatura = f.get_int(1); + section('B').find_field(PEC_ESPOSTO).show(_stampa_esp); // Show it regardless its old state genera_intestazioni(odd_page, head.height() - 1); init_header(m); // Set fixed text diff --git a/sc/sc2401.h b/sc/sc2401.h index cac19fe2d..479a1ebbc 100755 --- a/sc/sc2401.h +++ b/sc/sc2401.h @@ -124,6 +124,7 @@ class TESSL_form : public TForm TDate _dlo, _dls, _dir; int _giorni_rischio; bool _in_valuta; + bool _stampa_esp; int _fincatura; // 0 = nessuna, 1 = testo, 2 = grafica word _num_rip; // numero di righe usate per i riporti word _total_rows; // numero di righe usate per i totali