Sample 26043: How to display web content within a SAS/AF Frame
SAS/AF Frames on Microsoft Windows platforms can make use of the OLE objects supplied by the host environment. One such object is the Web Browser Control. This control can be used to display any content that normally would be available through the web browser.
To include this control within a frame, follow these steps:
- Create a frame using the BUILD command or by using point and click through the SAS Explorer window.
- Within the frame add an OLE - Insert Object. This component is included in the Version 6 objects resource list.
- In the Insert Object window select Create Control.
- From the list of available objects select Microsoft Web Browser.
- Click OK to add the control to your frame.
To interact with the control, some OLE programming knowledge is required. For example, the NAVIGATE method determines what URL should be displayed. Additional documentation on the OLE methods and attributes should be available through your browser's documentation.
To make use of the OLE methods, SAS provides the OLE Automation class. This class uses SAS/AF methods to send information to the OLE Object. The class is documented from the Help menu within your SAS session. One example of using this class is:
call notify('obj1','_do','navigate','http://support.sas.com');
|
where
- obj
- refers to the OLE - Insert Object
- _do
- is the OLE Automation class method to send a method call to the OLE object. _do does not expect a returned value. If the method should return information to the program, use _compute.
- navigate
- is an OLE method for the Web Browser Control
- http://support.sas.com
- is the URL being displayed by the control.
Please see the following SAS Notes for additional information:
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample describes how to use the OLE - Insert Object to include a Web Browser Control within a SAS/AF Frame.
Date Modified: | 2006-03-22 03:03:10 |
Date Created: | 2006-03-02 13:04:13 |
Operating System and Release Information
SAS System | SAS/AF | Windows | 6.12 | n/a |