Ejemplo n.º 1
0
 private void PutPageMetrics(TextWriter ftw)
 {
     ftw.Write(@"\paperw{0}\paperh{1}\margl{2}\margr{3}\margt{4}\margb{5}",
               RSize.TwipsFromPoints(r.PageWidthPoints),
               RSize.TwipsFromPoints(r.PageHeightPoints),
               r.ReportDefinition.LeftMargin.Twips,
               r.ReportDefinition.RightMargin.Twips,
               r.ReportDefinition.TopMargin.Twips,
               r.ReportDefinition.BottomMargin.Twips);
 }
Ejemplo n.º 2
0
        public bool MatrixStart(Matrix m, MatrixCellEntry[,] matrix, Row r, int headerRows, int maxRows, int maxCols)                           // called first
        {
            _MatrixCellSpan   = 0;
            _MatrixCols       = maxCols;
            _MatrixRows       = maxRows;
            _MatrixHeaderRows = headerRows;
            _MatrixData       = matrix;

            float[] widths = m.ColumnWidths(this._MatrixData, maxCols);
            _MatrixColumnWidths = new int[maxCols];
            for (int i = 0; i < maxCols; i++)
            {
                _MatrixColumnWidths[i] = RSize.TwipsFromPoints(widths[i]);
            }

            tw.Write(@"\par{");
            return(true);
        }