Corretta stampa documenti nel caso non si abbia nessuna riga.
git-svn-id: svn://10.65.10.50/trunk@5747 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9b3aa2b06a
commit
21ff78e869
@ -172,7 +172,8 @@ TDocumento_form::TDocumento_form(TRectype&/*TDocumentoEsteso**/ doc, TRelation&
|
||||
_rdocfile = new TRDocisamfile(_doc);
|
||||
relation()->replace(_docfile,0);
|
||||
relation()->replace(_rdocfile,1);
|
||||
relation()->update();
|
||||
if (_doc->physical_rows() > 0)
|
||||
relation()->update();
|
||||
modify_pictures();
|
||||
dec_parm p;
|
||||
const int items = _group_decimals.items();
|
||||
@ -261,6 +262,11 @@ void TDocumento_form::print_documento()
|
||||
|
||||
|
||||
const int righe = _doc->rows();
|
||||
if (righe < 1)
|
||||
{
|
||||
TPrintrow r;
|
||||
pr.print(r); // Riga fasulla...
|
||||
}
|
||||
|
||||
set_last_page(FALSE); // E' importante settare questo flag, per evitare "Falli di Piede" eheh :-)
|
||||
for (int r=1; r<=righe; r++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user