Table of contents
Collapse the table of content
Expand the table of content

Viewer.GetErrorMessage Method (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns a string that describes the specified error message code in Microsoft Visio Viewer.


expression. GetErrorMessage( ErrorCode)

_expression_An expression that returns a Viewer object.


NameRequired/OptionalData TypeDescription
ErrorCodeRequiredLongThe error message code for which you want to get a description.

Return Value



If you pass an error code that Visio Viewer does not recognize, the GetErrorMessage method will return either a string saying so, or nothing.

If you pass the value that the LastErrorCode property returns, the GetErrorMessage method returns the last error code that Visio Viewer returned.


The following code shows how to use the GetErrorMessage method to get a description of the last error code that Visio Viewer returned.

Debug.Print vsoViewer.GetErrorMessage(vsoViewer.LastErrorCode)
© 2018 Microsoft