Patch level : 1.7 at
Files correlati : at2.exe Ricompilazione Demo : [ ] Commento : Corretto stampa etichette su piu' colonne git-svn-id: svn://10.65.10.50/trunk@13492 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f94510ca84
commit
a3474f5d55
@ -91,7 +91,7 @@ class TStampaPerCategorie : public TPrintapp
|
||||
int _schxpag, _lenpage, _etnlarghezza, _etncolonne;
|
||||
int _etlarghezza, _etcolonne, _etrighe, _etbordoini, _etbordofin, _netichette;
|
||||
int _caxpag, _cabordoini, _cabordofin, _ncartoline;
|
||||
bool _stampa80, _etictot;
|
||||
bool _stampa80, _etictot, _formfeed;
|
||||
|
||||
protected:
|
||||
virtual bool user_create();
|
||||
@ -730,9 +730,20 @@ bool TStampaPerCategorie::preprocess_page(int file, int counter)
|
||||
if (((_tipostampa==sintetico) && ((_stampa80 && printer().rows_left()<4) || (printer().rows_left()<3))) || (printer().rows_left()<6 && _tipostampa==completo))
|
||||
printer().formfeed();
|
||||
}
|
||||
if (_tipostampa==etichette && _etrighe == 0)
|
||||
if (_tipostampa==etichette && _etrighe == 0)
|
||||
if (printer().rows_left() < _form_eti->get_body().height())
|
||||
printer().formfeed();
|
||||
if (_tipostampa==etichette && _etrighe > 0)
|
||||
{
|
||||
int resto = _netichette % (_etrighe*_etcolonne);
|
||||
if ((resto == 1) && (_netichette > _etrighe*_etcolonne) && !_formfeed)
|
||||
{
|
||||
printer().formfeed();
|
||||
_formfeed = TRUE;
|
||||
}
|
||||
else
|
||||
_formfeed = FALSE;
|
||||
}
|
||||
if (_tipostampa==notiziario)
|
||||
if (printer().rows_left() < _form_neti->get_body().height())
|
||||
printer().formfeed();
|
||||
@ -978,6 +989,7 @@ bool TStampaPerCategorie::set_print(int m)
|
||||
_contatore = 0;
|
||||
_netichette = 0;
|
||||
_ncartoline = 0;
|
||||
_formfeed = FALSE;
|
||||
TString256 chiave = "";
|
||||
_pergruppo = _msk->get_bool(F_PERGRUPPO);
|
||||
_perfamiglie = _msk->get_bool(F_PERFAMIGLIE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user