Corretta stampa su file in UNIX
git-svn-id: svn://10.65.10.50/trunk@952 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8bfa8cf6ed
commit
f18be2f45d
@ -1125,36 +1125,41 @@ bool TPrinter::open()
|
||||
_vf->open_modal ();
|
||||
}
|
||||
else if (_printertype == winprinter || _printertype == export
|
||||
|| _printertype == fileprinter)
|
||||
#if XVT_OS != XVT_OS_SCOUNIX
|
||||
|| _printertype == fileprinter
|
||||
#endif
|
||||
)
|
||||
{
|
||||
// prepare text object for new text
|
||||
_txt.destroy();
|
||||
}
|
||||
else
|
||||
{
|
||||
const PrinterDef & def = get_description (_curprn);
|
||||
TFilename fname (_printerfile);
|
||||
#if XVT_OS==XVT_OS_SCOUNIX
|
||||
else
|
||||
{
|
||||
const PrinterDef & def = get_description (_curprn);
|
||||
TFilename fname (_printerfile);
|
||||
|
||||
if (_printertype == normprinter)
|
||||
fname = def._devicename;
|
||||
_fp = fopen (fname, "w");
|
||||
if (_printertype == normprinter)
|
||||
fname = def._devicename;
|
||||
_fp = fopen (fname, "w");
|
||||
|
||||
if (_fp == NULL)
|
||||
return error_box ("Errore di apertura file stampa: '%s'",
|
||||
(const char *) fname);
|
||||
if (_fp == NULL)
|
||||
return error_box ("Errore di apertura file stampa: '%s'",
|
||||
(const char *) fname);
|
||||
|
||||
TString code (def.get_codes (_curcode));
|
||||
if (code.not_empty ())
|
||||
{
|
||||
const char *s = code;
|
||||
fputs (esc ((char *) s), _fp);
|
||||
}
|
||||
}
|
||||
TString code (def.get_codes (_curcode));
|
||||
if (code.not_empty ())
|
||||
{
|
||||
const char *s = code;
|
||||
fputs (esc ((char *) s), _fp);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
_currentrow = 1;
|
||||
_currentpage = 1;
|
||||
_currentrow = 1;
|
||||
_currentpage = 1;
|
||||
|
||||
return _isopen = TRUE;
|
||||
return _isopen = TRUE;
|
||||
}
|
||||
|
||||
void TPrinter::set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user