예제 #1
0
 //public override Control paintcell(string id, System.Web.UI.WebControls.TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object value, Boolean upperLevel)
 public override Control PaintCell(String id, TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object val, bool ul)
 {
     System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
     img.ImageUrl = this.ImageUrl; //base.ImageUrl;
     img.Width    = Unit.Percentage(80);
     img.Height   = Unit.Percentage(90);
     return(img);
 }
예제 #2
0
        public override Control PaintCell(String id, TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object val, bool ul)
        {
            //'-------------staff photo
            System.Web.UI.WebControls.Image imgstaff = new System.Web.UI.WebControls.Image();
            imgstaff.ImageUrl = this.ImageUrl; //base.ImageUrl;
            //imgstaff.Width = Unit.Percentage(70);
            //imgstaff.Height = Unit.Percentage(70);

            imgstaff.Attributes.Add("style", "position:relative; left:50px; top:2px;");

            imgstaff.Height = Unit.Pixel(100);
            imgstaff.Width  = Unit.Pixel(80);

            //imgstaff.ImageAlign = ImageAlign.AbsMiddle;
            //imgstaff.ImageAlign = ImageAlign.Middle;
            //    imgstaff.CssClass = "position: relative; left: 10px";

            // height: 100px; width: 70px; position: relative; left: 60px;
            return(imgstaff);
        }