Ejemplo n.º 1
0
 public ReportAttribute(Report report)
 {
     this.report = report;
     printStyle  = new PrintStyle();
     font        = ConvertUtil.GetFont("宋体", "9");
     rowHeiht    = 20;
     LineWidth   = 1;
 }
Ejemplo n.º 2
0
        public static PrintStyle GetPrintStyle(string printLast, string briefPrint)
        {
            //简洁报表样式、页脚最后一页打印
            if (string.IsNullOrEmpty(printLast))
            {
                printLast = "0";
            }
            if (string.IsNullOrEmpty(briefPrint))
            {
                briefPrint = "0";
            }
            PrintStyle printStyle = new PrintStyle();

            printStyle.IsPrintInLast = "1" == printLast;
            printStyle.IsBrifeStyle  = "1" == briefPrint;
            return(printStyle);
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="propertyValue"></param>
 /// <example>
 /// 工程量清单单价分析表,201,201,203,203,1,2.25,-1,宋体,-9,0,0,1.0,1.5
 /// </example>
 public void Add(string propertyValue)
 {
     string[] propertyArray = propertyValue.Split(',');
     if (propertyValue.Length < 13)
     {
         throw new ReportWholePropertyNoLengthException();
     }
     this.reportName     = propertyArray[0];
     this.margin.Top     = ConvertUtil.GetBoundary(propertyArray[1]);
     this.margin.Bottom  = ConvertUtil.GetBoundary(propertyArray[2]);
     this.margin.Left    = ConvertUtil.GetBoundary(propertyArray[3]);
     this.margin.Right   = ConvertUtil.GetBoundary(propertyArray[4]);
     this.grainDirection = ConvertUtil.GetGrainDirection(propertyArray[5]);
     this.rowHeiht       = ConvertUtil.GetRowHeight(propertyArray[6]);
     this.Pagination     = ConvertUtil.GetPagination(propertyArray[7]);
     this.font           = ConvertUtil.GetFont(propertyArray[8], propertyArray[9]);
     this.printStyle     = ConvertUtil.GetPrintStyle(propertyArray[10], propertyArray[11]);
     this.lineWidth      = ConvertUtil.GetLineWidth(propertyArray[12]);
     if (propertyArray.Length > 13)
     {
         this.bordLineWidth = ConvertUtil.GetLineWidth(propertyArray[13]);
     }
 }
Ejemplo n.º 4
0
 public TextAttibute()
 {
     printStyle = new PrintStyle();
     font       = ConvertUtil.GetFont("", "");
 }