Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Stampa cartellini Tetractis git-svn-id: svn://10.65.10.50/branches/R_10_00@22208 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ca80780a7b
commit
7a75b31554
@ -1993,7 +1993,8 @@ void TBook::join_file(int pps)
|
||||
// <page number=%d />
|
||||
in_page = str.get_int(1);
|
||||
const int sub = ((in_page - 1) % pps);
|
||||
off_page = sub * logical_page_height() / pps;
|
||||
// off_page = sub * logical_page_height() / pps;
|
||||
off_page = sub * page_size().y / pps;
|
||||
if (sub == 0)
|
||||
{
|
||||
out_page = (in_page - 1) / pps + 1;
|
||||
@ -2017,10 +2018,10 @@ void TBook::join_file(int pps)
|
||||
} else
|
||||
if (str.starts_with("</page "))
|
||||
{
|
||||
if (out_page % pps == 0)
|
||||
if (in_page % pps == 0)
|
||||
{
|
||||
str.format("</page number=%d>", out_page);
|
||||
out_page = 0;
|
||||
in_page = 0;
|
||||
}
|
||||
else
|
||||
continue;
|
||||
@ -2028,7 +2029,7 @@ void TBook::join_file(int pps)
|
||||
out << str << endl;
|
||||
}
|
||||
|
||||
if (out_page != 0) // Non ho ancora scritto l'ultimo fine pagina
|
||||
if (in_page != 0) // Non ho ancora scritto l'ultimo fine pagina
|
||||
{
|
||||
str.format("</page number=%d>", out_page);
|
||||
out << str << endl;
|
||||
|
@ -32,8 +32,8 @@ TModule_table::TModule_table(const char* tabname)
|
||||
if (_module.blank())
|
||||
_module = appname.left(2);
|
||||
|
||||
if (_customer <= 0L && real::is_natural(appname.mid(3)))
|
||||
_customer = atol(app.mid(2));
|
||||
// if (_customer <= 0L && real::is_natural(appname.mid(3)))
|
||||
// _customer = atol(app.mid(2));
|
||||
}
|
||||
_module.upper();
|
||||
}
|
||||
|
@ -850,7 +850,7 @@ bool TCrea_cartellini::set_params(const TMask & m)
|
||||
|
||||
bool TCrea_cartellini::set_params()
|
||||
{
|
||||
const TFixed_string arg = argv(3);
|
||||
const TFixed_string arg = argv(2);
|
||||
if ((arg[0] != '-' && arg[0] != '/') || (arg[1] != 'i' && arg[1] != 'I'))
|
||||
return false;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report libraries="ve1300, pl1048100" name="PL1048100" lpi="6">
|
||||
<report libraries="ve1300, pl1048100" page_merge="1" name="pl1048100" lpi="6">
|
||||
<description>Cartellini</description>
|
||||
<font face="Courier New" size="10" />
|
||||
<section type="Head" height="12" pattern="1">
|
||||
@ -93,4 +93,4 @@ JOIN 20 INTO TIPOCF==TIPOCF CODCF==CODCF
|
||||
JOIN 47 INTO CODART==CODART
|
||||
FROM TIPOCONT=#CONT CODICE=#KEY
|
||||
TO TIPOCONT=#CONT CODICE=#KEY</sql>
|
||||
</report>
|
||||
</report>
|
||||
|
Loading…
x
Reference in New Issue
Block a user