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(75);
     return(img);
 }
 public override Control PaintCell(String id, TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object val, bool ul)
 {
     //'-------------licence front
     System.Web.UI.WebControls.Image imagelicence = new System.Web.UI.WebControls.Image();
     imagelicence.ImageUrl = this.ImageUrl; //base.ImageUrl;
     imagelicence.Width    = Unit.Percentage(80);
     imagelicence.Height   = Unit.Percentage(70);
     return(imagelicence);
 }
 public override Control PaintCell(String id, TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object val, bool ul)
 {
     //'-------------studentphoto
     System.Web.UI.WebControls.Image img2 = new System.Web.UI.WebControls.Image();
     img2.ImageUrl = this.ImageUrl; //base.ImageUrl;
     img2.Width    = Unit.Percentage(100);
     img2.Height   = Unit.Percentage(100);
     return(img2);
 }
Ejemplo n.º 4
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);
        }