Пример #1
0
        public void printPage(IStreamWriter streamWriter)
        {
            string columnSpacer = "";

            columnSpacer = columnSpacer.PadRight(ColumnSpacing, ' ');
            streamWriter.writeLine("");
            for (int i = 0; i < NoOfRows; i++)
            {
                streamWriter.write(columnSpacer);
                for (int j = 0; j < NoOfCols; j++)
                {
                    streamWriter.write(Columns[j].Rows[i] + columnSpacer);
                }
                streamWriter.writeLine(String.Empty);
            }
            String pageBreak = "";

            pageBreak = pageBreak.PadRight(WidthOfPage, '-');
            streamWriter.writeLine("\n" + pageBreak);
        }