Example #1
0
        private void BeginRow(int rownum, SXSSFRow row)
        {
            WriteAsBytes("<row r=\"");
            WriteAsBytes(rownum + 1);
            WriteAsBytes("\"");

            if (row.HasCustomHeight())
            {
                WriteAsBytes(" customHeight=\"true\"  ht=\"");
                WriteAsBytes(row.HeightInPoints);
                WriteAsBytes("\"");
            }
            if (row.ZeroHeight)
            {
                WriteAsBytes(" hidden=\"true\"");
            }
            if (row.IsFormatted)
            {
                WriteAsBytes(" s=\"");
                WriteAsBytes(row.RowStyle.Index);
                WriteAsBytes("\"");
                WriteAsBytes(" customFormat=\"1\"");
            }

            if (row.OutlineLevel != 0)
            {
                WriteAsBytes(" outlineLevel=\"");
                WriteAsBytes(row.OutlineLevel);
                WriteAsBytes("\"");
            }
            if (row.Hidden != null)
            {
                WriteAsBytes(" hidden=\"");
                WriteAsBytes(row.Hidden.Value ? "1" : "0");
                WriteAsBytes("\"");
            }
            if (row.Collapsed != null)
            {
                WriteAsBytes(" collapsed=\"");
                WriteAsBytes(row.Collapsed.Value ? "1" : "0");
                WriteAsBytes("\"");
            }

            WriteAsBytes(">\n");

            RowNum = rownum;
        }
Example #2
0
        private void BeginRow(int rownum, IRow row1)
        {
            SXSSFRow row = row1 as SXSSFRow;

            WriteAsBytes(OutputStream, "<row r=\"" + (rownum + 1) + "\"");

            if (row.HasCustomHeight())
            {
                WriteAsBytes(OutputStream, " customHeight=\"true\"  ht=\"" + row.HeightInPoints + "\"");
            }
            if (row.ZeroHeight)
            {
                WriteAsBytes(OutputStream, " hidden=\"true\"");
            }
            if (row.IsFormatted)
            {
                WriteAsBytes(OutputStream, " s=\"" + row.RowStyleIndex + "\"");

                WriteAsBytes(OutputStream, " customFormat=\"1\"");
            }

            if (row.OutlineLevel != 0)
            {
                WriteAsBytes(OutputStream, " outlineLevel=\"" + row.OutlineLevel + "\"");
            }
            if (row.Hidden != null)
            {
                WriteAsBytes(OutputStream, " hidden=\"" + (row.Hidden.Value ? "1" : "0") + "\"");
            }
            if (row.Collapsed != null)
            {
                WriteAsBytes(OutputStream, " collapsed=\"" + (row.Collapsed.Value ? "1" : "0") + "\"");
            }

            WriteAsBytes(OutputStream, ">\n");

            this.RowNum = rownum;
        }