Patch level : 10.0 patch ???
Files correlati : lv3 Ricompilazione Demo : [ ] Commento : Corretta la stampa automatica nell'evasione da terminale git-svn-id: svn://10.65.10.50/trunk@19883 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f1eae000b1
commit
c2835dc687
@ -580,10 +580,35 @@ void TEvasione_ter_msk::genera_buono()
|
||||
if (err == NOERR)
|
||||
{
|
||||
//stampa automatica
|
||||
TFilename tmp;
|
||||
tmp.temp("", "ini");
|
||||
|
||||
// Ensure that the ofstream is well closed before ve1 call
|
||||
if (tmp.full()) // dummy test
|
||||
{
|
||||
ofstream outf(tmp);
|
||||
outf << "[Transaction]" << endl; // Transaction header
|
||||
outf << "Action=S" << 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
|
||||
outf << "Doc(1)=";
|
||||
outf << "D|" << datagen.year() << '|' << codnum << '|' << _ndoc << endl;
|
||||
}
|
||||
|
||||
if (tmp.exist())
|
||||
{
|
||||
TString cmdline; cmdline << "ve1 -2 -i" << tmp;
|
||||
TExternal_app app(cmdline);
|
||||
app.run();
|
||||
tmp.fremove();
|
||||
}
|
||||
/*//stampa automatica
|
||||
TString80 str;
|
||||
str << "ve1 -2 " << codnum << ' ' << datagen.year() << " D " << _ndoc << " S D";
|
||||
TExternal_app stampa(str);
|
||||
stampa.run();
|
||||
stampa.run();*/
|
||||
}
|
||||
else
|
||||
warning_box(TR("Non è stato possibile generare nessun documento"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user