LastErrorDescription Property

Description

The LastErrorDescription Property stores a brief description of the last occurred error.

Type

string (read only)

Example

The following samples illustrate how to get error description during presentation opening.

VB Sample

Sub iSpringSample()
    On Error GoTo e

    Dim pc As New PresentationConverter
    pc.OpenPresentation "c:\presentation.ppt"

    Exit Sub
e:

    MsgBox "Error:" & pc.LastErrorDescription
End Sub

C# sample

using System;
using iSpring;

class iSpringSample
{
    static void Main(string[] args)
    {
        PresentationConverter pc = new PresentationConverter();
        try
        {
            pc.OpenPresentation("D:\\problemSlide.ppt");
        }
        catch (Exception)
        {
            Console.WriteLine("Error: " + pc.LastErrorDescription);
        }
    }
}