A valid function must be provided. This callback fires if the Viewer.loadFromLocal operation succeeds. A LEADDocument object will be passed to the callback. To set the document into the active LEADVIEW viewer, first retrieve the active viewer by calling Viewer.getCurrentDocument.
For an example, refer to Viewer.loadFromLocal.