Patch level : 10.0
Files correlati : lv1 Ricompilazione Demo : [ ] Commento : Stampa buoni direttamente senza visualizzare il dialogo di impostazione stampante git-svn-id: svn://10.65.10.50/trunk@19841 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a1b9e5171d
commit
975eb6f92f
@ -140,8 +140,9 @@ void TStampaBuoni_app::elabora(const TMask& mask, const char action) const
|
||||
|
||||
ofstream outf(tmp);
|
||||
outf << "[Transaction]" << endl; // Transaction header
|
||||
outf << "Action=" << action << endl; // 'P'rint or 'A'nteprint
|
||||
outf << "Action=" << action << endl; // 'S'tampa o 'A'nteprima
|
||||
outf << "Mode=D" << endl; // Definitive (always?)
|
||||
outf << "NoPrintDlg=X" << endl; // Dont' prompt the user with the print dialog
|
||||
outf << endl;
|
||||
outf << "[33]" << endl; // Transaction body
|
||||
long nx = 0; // Document counter
|
||||
@ -171,9 +172,10 @@ void TStampaBuoni_app::main_loop()
|
||||
const KEY k = m.run();
|
||||
switch (k)
|
||||
{
|
||||
case K_ENTER: elabora(m, 'P'); break; // 'P'rint
|
||||
case 'A': elabora(m, 'A'); break; // 'A'nteprint
|
||||
default: running = false; break; // quit
|
||||
case K_ENTER: elabora(m, 'S'); break; // 'S'tampa
|
||||
case 'A' : elabora(m, 'A'); break; // 'A'nteprima
|
||||
case 'P' : elabora(m, 'P'); break; // 'P'df
|
||||
default : running = false; break; // quit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user