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

    Show / Hide Table of Contents

    PrintOptions Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Specifies information about how a presentation is printed.

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

    For more information, see Print example.

    Constructors

    PrintOptions()

    Initializes a new instance of the PrintOptions class.

    • C#
    • VB.NET
    public PrintOptions()
    Public Sub New

    PrintOptions(Stream)

    Initializes a new instance of the PrintOptions class.

    • C#
    • VB.NET
    public PrintOptions(Stream xmlStream)
    Public Sub New(xmlStream As Stream)
    Parameters
    xmlStream
    System.IO.Stream

    Initializes a new instance of the PrintOptions class by using an XML stream (that contains a System.Printing.PrintTicket document) that complies with the XML Print Schema.

    Remarks

    For more information, see Print example.

    Properties

    CopyCount

    Gets or sets the number of copies of the presentation to print.

    • C#
    • VB.NET
    public int CopyCount { get; set; }
    Public Property CopyCount As Integer
    Property Value
    System.Int32

    The number of copies of the presentation to print.

    Exceptions
    System.ArgumentException

    Value must be positive.

    DocumentName

    Gets or sets the name of the printed document in the print queue.

    Default value is 'Presentation'.

    • C#
    • VB.NET
    public string DocumentName { get; set; }
    Public Property DocumentName As String
    Property Value
    System.String

    The name of the printed document in the print queue.

    FromSlide

    Gets or sets the slide index of the first slide to print.

    • C#
    • VB.NET
    public int FromSlide { get; set; }
    Public Property FromSlide As Integer
    Property Value
    System.Int32

    The slide index of the first slide to print.

    Remarks

    Presentation slides are zero-indexed meaning that first slide in the presentation has index 0 (zero).

    Exceptions
    System.ArgumentException

    Value cannot be negative.

    ToSlide

    Gets or sets the index of the last slide to print.

    • C#
    • VB.NET
    public int ToSlide { get; set; }
    Public Property ToSlide As Integer
    Property Value
    System.Int32

    The index of the last slide to print.

    Remarks

    Use System.Int32.MaxValue value to print to the last slide.

    Exceptions
    System.ArgumentException

    Value cannot be lower than FromSlide.

    Examples

    Print PowerPoint files in C# and VB.NET
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.