Index: Report.cpp =================================================================== RCS file: /tmp/uppcvs/uppsrc/Report/Report.cpp,v retrieving revision 1.1.1.1 diff -b -u -r1.1.1.1 Report.cpp --- Report.cpp 17 Jan 2006 00:23:08 -0000 1.1.1.1 +++ Report.cpp 17 Jan 2006 00:54:58 -0000 @@ -3,6 +3,19 @@ Report::Report() { pagei = -1; + Create(Size(3968, 6074)); + Clear(); +} + +Report::Report(int cx, int cy) +{ + Create(cx, cy); + Clear(); +} + +Report::Report(const Size &sz) +{ + Create(sz); Clear(); } @@ -13,7 +26,6 @@ headercy = footercy = headerspc = footerspc = 0; pagei = -1; Page(0); - Create(Size(3968, 6074)); StartPage(0); } Index: Report.h =================================================================== RCS file: /tmp/uppcvs/uppsrc/Report/Report.h,v retrieving revision 1.1.1.1 diff -b -u -r1.1.1.1 Report.h --- Report.h 17 Jan 2006 00:23:08 -0000 1.1.1.1 +++ Report.h 17 Jan 2006 00:53:51 -0000 @@ -52,6 +52,8 @@ Report& NoFooter() { return Footer(NULL, 0); } Report(); + Report(int cx, int cy); + Report(const Size &sz); }; class ReportView : public Ctrl { Index: ReportDlg.cpp =================================================================== RCS file: /tmp/uppcvs/uppsrc/Report/ReportDlg.cpp,v retrieving revision 1.1.1.1 diff -b -u -r1.1.1.1 ReportDlg.cpp --- ReportDlg.cpp 17 Jan 2006 00:23:08 -0000 1.1.1.1 +++ ReportDlg.cpp 15 Jan 2006 01:14:36 -0000 @@ -28,7 +28,7 @@ dlg.nFromPage = i + 1; dlg.nToPage = i + 1; dlg.nMinPage = 1; - dlg.nMaxPage = r.GetCount() + 1; + dlg.nMaxPage = r.GetCount(); if(PrintDlg(&dlg)) { PrintDraw w(dlg.hDC, _name); if(!(dlg.Flags & PD_PAGENUMS)) { @@ -53,7 +53,7 @@ dlg.nToPage = (WORD)-1; ::GlobalFree(dlg.hDevMode); ::GlobalFree(dlg.hDevNames); - return dlg.nFromPage - 1 == 0 && dlg.nToPage == r.GetCount() + 1; + return dlg.nFromPage - 1 == 0 && dlg.nToPage == r.GetCount(); #endif return false; }