Skip Headers
Oracle® Outside In Viewer for ActiveX Developer's Guide
Release 8.3.7

Part Number E12847-02
Go to Documentation Home
Go to Table of Contents
Go to Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

7 Miscellaneous Topics

This section describes additional topics on the use of the Outside In Viewer for ActiveX.

7.1 System Read Ahead

Outside In uses a technique known as read-ahead in order to cache pages of text in memory for faster display. There are three elements that control this process. If the property SystemReadAhead (see Section A.2.95, "SystemReadAhead") is set to FALSE, then the process which reads and caches the next few pages will be disabled. This means that there could be noticeable delays in the view refresh as the user scrolls through the document. It can also cause unusual scroll bar behavior.

When SystemReadAhead is enabled, the SystemTimer property (see Section A.2.96, "SystemTimer") is a Boolean value that turns all background processing, including read-ahead, on and off. If the SystemTimer property is turned off, read-ahead can be controlled by the programmer by calling the SystemIdle method (see Section A.3.43, "SystemIdle") to allow the viewer to perform background tasks such as read-ahead, caret blinking and auto-scroll.

7.2 Errors

There are two types of errors that can be generated by the ActiveX control. Errors, which occur due to incorrect use of the control, will be caught by the system and will generate an OLE exception. Errors that occur due to invalid parameter content (for example, missing files) will generate an Error event. By default the ErrorShowMsg property (see Section A.2.37, "ErrorShowMsg") is set to TRUE and will display error messages as they occur. The property can be set to FALSE to disable this reporting. In either case, the Error event will be generated.

The Error event handler may access the ErrorCode and ErrorMsg properties (see Section A.2.35, "ErrorCode," and Section A.2.36, "ErrorMsg") to determine the nature of the error. The ErrorMsg is a BSTR variable and can be used to display errors as the developer sees fit.

Private Sub oixctrl1_Error()
Rem ** Error event handler for viewer

Dim Text As String

Select Case oixctrl1.ErrorCode

      Text = "SCCERR:" + oixctrl1.ErrorMsg
      Text = "SCCERR:" + oixctrl1.ErrorMsg
      Text = "SCCERR:" + oixctrl1.ErrorMsg
      Text = "SCCERR:" + oixctrl1.ErrorMsg
   End Select
   MsgBox Text, vbOKOnly, "Outside In Error"

End Sub