GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ExcelFilePage Class

    Namespace:
    GemBox.Spreadsheet
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a workbook page.

    • C#
    • VB.NET
    public sealed class ExcelFilePage
    Public NotInheritable Class ExcelFilePage
    Inheritance:
    System.Object
    ExcelFilePage

    Properties

    Height

    Gets the page height in Points.

    • C#
    • VB.NET
    public double Height { get; }
    Public ReadOnly Property Height As Double
    Property Value
    System.Double

    The page height in Points.

    PageContent

    Gets the content of the page.

    • C#
    • VB.NET
    public FrameworkElement PageContent { get; }
    Public ReadOnly Property PageContent As FrameworkElement
    Property Value
    System.Windows.FrameworkElement

    The content of the page.

    Width

    Gets the page width in Points.

    • C#
    • VB.NET
    public double Width { get; }
    Public ReadOnly Property Width As Double
    Property Value
    System.Double

    The page width in Points.

    Methods

    Save(Stream, SaveOptions)

    Saves the workbook page in the specified stream.

    • C#
    • VB.NET
    public void Save(Stream stream, SaveOptions options)
    Public Sub Save(stream As Stream, options As SaveOptions)
    Parameters
    stream
    System.IO.Stream

    The stream in which to save the workbook page.

    options
    SaveOptions

    The saving options which can be used to define settings for save operation.

    Remarks

    Parameter options, currently, must be of type PdfSaveOptions, XpsSaveOptions or ImageSaveOptions.

    Save(String)

    Saves the workbook page to a file with the specified path. Path must include file extension.

    • C#
    • VB.NET
    public void Save(string path)
    Public Sub Save(path As String)
    Parameters
    path
    System.String

    The path to which to save the workbook page.

    Remarks

    File extension that is extracted from the path is used to create the appropriate SaveOptions derived class instance that is then passed to the Save(String, SaveOptions) method.

    Following file extensions are supported:

    • Portable Document Format: .pdf
    • XML Paper Specification: .xps
    • Image: .bmp, .gif, .jpg, .jpeg, .png, .tif, .tiff, .wdp
    Exceptions
    System.ArgumentException

    If file extension is not specified or not supported. If file extension is not recognized, use Save(String, SaveOptions) method overload instead.

    Save(String, SaveOptions)

    Saves the workbook page to a file with the specified path.

    • C#
    • VB.NET
    public void Save(string path, SaveOptions options)
    Public Sub Save(path As String, options As SaveOptions)
    Parameters
    path
    System.String

    The path to which to save the workbook page.

    options
    SaveOptions

    The saving options which can be used to define settings for save operation.

    Remarks

    Parameter options, currently, must be of type PdfSaveOptions, XpsSaveOptions or ImageSaveOptions.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.