Corretto il form feed finale per evitare una pagina vuota se non ho stampato nulla ?
git-svn-id: svn://10.65.10.50/trunk@602 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ceeb28aeaf
commit
55f8ebba30
@ -1368,9 +1368,11 @@ void TPrinter::merge_export_file(const char* file, bool header)
|
||||
|
||||
void TPrinter::close ()
|
||||
{
|
||||
if (isopen () && _currentrow > 1 &&
|
||||
(_footersize || (_printertype != screenvis && _printertype != winprinter)))
|
||||
formfeed ();
|
||||
const bool isfirstpage = (_currentpage == 1 && _frompage == 0) ||
|
||||
(_currentpage <= _frompage);
|
||||
if (isopen () && (!isfirstpage || _currentrow > _headersize) &&
|
||||
(_printertype != screenvis && _printertype != winprinter))
|
||||
formfeed();
|
||||
|
||||
if (_fp)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user