Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SpreadImage Class / CanPrint Property
Example


In This Topic
    CanPrint Property (SpreadImage)
    In This Topic
    Gets or sets whether to print the current image when printing.
    Syntax
    'Declaration
     
    Public Overridable Property CanPrint As Boolean
    'Usage
     
    Dim instance As SpreadImage
    Dim value As Boolean
     
    instance.CanPrint = value
     
    value = instance.CanPrint
    public virtual bool CanPrint {get; set;}
    Example
    This example sets the CanPrint property.
    FarPoint.Web.Spread.SpreadImage Image = new FarPoint.Web.Spread.SpreadImage();
    Image.CanSize = false;
    Image.CanPrint = true;
    Image.ID = "FirstImage";
    Image.ImageUrl = "fplogo.png";
    Image.Width = 200;
    Image.Height = 150;
    Image.Visible = true;
    FpSpread1.ActiveSheetView.Images.Add(Image);
    Dim Image As New FarPoint.Web.Spread.SpreadImage()
    Image.CanSize = False
    Image.CanPrint = True
    Image.ID = "FirstImage"
    Image.ImageUrl = "fplogo.png"
    Image.Width = 200
    Image.Height = 150
    Image.Visible = True
    FpSpread1.ActiveSheetView.Images.Add(Image)
    See Also