Ejemplo n.º 1
0
        public void DrawReport(ReportPage reportPage)
        {
            SheetView source_report = reportPage.getSource_Report();
            Point     Point1        = new Point(0, 0);

            FT[] column_line_array = reportPage.getColumn_Line_Array();
            FT[] row_line_array    = reportPage.getRow_Line_Array();

            int PageRowIndex    = reportPage.getPageRowIndex();
            int PageColumnIndex = reportPage.getPageColumnIndex();

            int top_row_line = 0;

            if (PageRowIndex == 0 && row_line_array.Length > 0)
            {
                top_row_line = row_line_array[0].from;
            }

            int left_column_line = 0;

            if (PageColumnIndex == 0 && column_line_array.Length > 0)
            {
                left_column_line = column_line_array[0].from;
            }

            for (int i = 0; i < column_line_array.Length; i++)
            {
                FT localFT1 = column_line_array[i];
                for (int j = 0; j < row_line_array.Length; j++)
                {
                    FT localFT2 = row_line_array[j];
                    intersectCell(source_report, PageRowIndex, PageColumnIndex, top_row_line, left_column_line, localFT1, localFT2, Point1);

                    Point1.X = localFT2.to - localFT2.from + 1;
                }

                Point1.X = 0;
                Point1.Y = localFT1.to - localFT1.from + 1;
            }
        }