Patch level : 12.0 1102
Files correlati : ve1.exe Commento : Patch Migliorata stampa dei campi su più righe e con altezza automtica (es descrizione riga fattura) con descrizioni molto lunghe e on a capo nella descrizione. Interno provare stampa fatture con righe che abbiano queste caratteristiche.
This commit is contained in:
parent
ce5e1e80f4
commit
cce5377cc4
@ -895,6 +895,7 @@ int TBook::compute_text_frame(const TString& tmp, const TReport_font& font, TRep
|
|||||||
{
|
{
|
||||||
TString& row = para.row(i);
|
TString& row = para.row(i);
|
||||||
int pix = xvt_dwin_get_text_width(w, row, -1);
|
int pix = xvt_dwin_get_text_width(w, row, -1);
|
||||||
|
|
||||||
if (pix > max_row_width)
|
if (pix > max_row_width)
|
||||||
{
|
{
|
||||||
int good_len = 0;
|
int good_len = 0;
|
||||||
@ -921,10 +922,16 @@ int TBook::compute_text_frame(const TString& tmp, const TReport_font& font, TRep
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TString next_row = row.mid(good_len);
|
if (i == para.items() - 1)
|
||||||
next_row.ltrim();
|
para.add(row.mid(good_len));
|
||||||
para.insert(next_row, i+1);
|
else
|
||||||
row.cut(good_len);
|
{
|
||||||
|
TString& next_row = para.row(i + 1);
|
||||||
|
|
||||||
|
next_row.insert(row.mid(good_len));
|
||||||
|
next_row.ltrim();
|
||||||
|
}
|
||||||
|
row.cut(good_len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user