GetLastErrorMessage

 

            void GetLastErrorMessage (ref string sErrorMsg )

Description

            Description of the error if any occurred.

Parameters

            sErrorMsg – Description of the error.

Example

    C#

try

            {

                thePresConverter = new PFPConverter();

                thePresConverter.OpenPresentation("no such file exist.ppt");

               

            }

            catch

            {

                string LastErr = string.Empty;

                thePresConverter.GetLastErrorMessage(ref LastErr);

                Console.WriteLine("ErrorMessage: " + LastErr);

            }

    VB

Dim presConverter As New PFPConverter

On Error GoTo Err

presConverter.OpenPresentation " no such file exist.ppt "

 

Err:

 presConverter.GetLastErrorMessage errMsg

 MsgBox errMsg



Related Topics

Methods


Home | About Us | Products | Downloads | Support
© 2016 DigitalOfficePro.com. All Rights Reserved.