POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ...

POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ... POISE-SkyLite User Guide - Palmer College of Chiropractic, Intranet ...

w3.palmer.edu
from w3.palmer.edu More from this publisher
14.11.2014 Views

ADVANCED SKYLITE CHAPTER 4 OLE Automation OLE automation is an industry standard that enables applications to expose their OLE objects to applications that support OLE, such as Visual Basic for Applications (VBA), the Excel Macro Language, Visual C++, and Delphi. SkyLite is an automation-enabled object. This means that you can open SkyLite sessions and make use of the macro language from within applications that are OLE automation controllers such as VBA. The commands listed below can be used in Visual Basic programs to start and close SkyLite sessions and run macro scripts. Command Description Parameter Parameter Description session.setting The name given to SkyLite in the Windows registry. - - SkyLite.LoadSession SkyLite.ScriptExec Loads a SkyLite session. Executes the SkyLite script line. “String”, “String”, bool “String” Session File name including path. Unused. Unused. A valid SkyLite macro command. SkyLite.StartScript Runs a macro file. “String” A macro filename including the full path. SkyLite.StartSession Starts or restarts a - - loaded session. SkyLite.Unload Unloads SkyLite. - - SkyLite.EndSession Ends SkyLite session. - - VBA Example The following example shows how some of these commands can be used to load and start a SkyLite session using Visual Basic for Applications. Rem Define the variable SkyLite as the data type object. Rem This represents the SkyLite application when used for Rem OLE automation Dim SkyLite As object Rem Create an OLE object that corresponds to SkyLite. Rem We will use this object to invoke Rem published automation methods. Set SkyLite = GetObject("", "Session.Setting") Rem Start a session with the given name result = SkyLite.LoadSession("TEST.SES", "", True) Rem Once SkyLite has loaded, tell it to print something Rem on the terminal window. result = SkyLite.ScriptExec("print ""hello world""") Rem Close the SkyLite session SkyLite.endsession Rem Unload/Exit SkyLite SkyLite.unload 54 POISE-SkyLite User Guide

CHAPTER 4 ADVANCED SKYLITE FTP File Transfer SkyLite provides facilities enabling you to upload and download files to and from a remote FTP server. The presence of the file “wininet.dll” is required. This is usually installed with Microsoft Internet Explorer. If Internet Explorer is not installed, the dll is installed using “‘wintdist.exe”’ when SkyLite is installed. FTP file transfers can be invoked from the System menu by selecting the Start FTP File Transfer option. This option is grayed out if wininet.dll is not present. FTP file transfers may be carried out at any time during a session. When a transfer is invoked, SkyLite makes a connection to the FTP host, so it is not necessary for you to be connected to the host, or to be using a TCP/IP connection. Only one FTP transfer can be active at a time. Starting FTP Transfers from the System Menu To transfer files: 1. Select the Start FTP File Transfer option on the System menu. The Start FTP dialog is displayed. 2. Specify the remote FTP server address in the FTP Server Address box. The entry defaults to the last used FTP address. If you are currently connected to a host via TCP/IP, then the address of that host can be selected as a secondary entry in the box. The server address may have a file path appended, for example: ftp.microsoft.com/services/technet Whenever the address is modified, you will be asked if the Username is to be changed as well. If yes, the FTP Options dialog is displayed in order to facilitate this (see Step 5 below). 3. In the Direction box, select the direction of the transfer, either Send to Host or Receive From Host. POISE-SkyLite User Guide 55

CHAPTER 4<br />

ADVANCED SKYLITE<br />

FTP File Transfer<br />

<strong>SkyLite</strong> provides facilities enabling you to upload and download files to and from a<br />

remote FTP server. The presence <strong>of</strong> the file “wininet.dll” is required. This is usually<br />

installed with Micros<strong>of</strong>t Internet Explorer. If Internet Explorer is not installed, the dll is<br />

installed using “‘wintdist.exe”’ when <strong>SkyLite</strong> is installed.<br />

FTP file transfers can be invoked from the System menu by selecting the Start FTP File<br />

Transfer option. This option is grayed out if wininet.dll is not present.<br />

FTP file transfers may be carried out at any time during a session. When a transfer is<br />

invoked, <strong>SkyLite</strong> makes a connection to the FTP host, so it is not necessary for you to be<br />

connected to the host, or to be using a TCP/IP connection. Only one FTP transfer can<br />

be active at a time.<br />

Starting FTP Transfers from the System Menu<br />

To transfer files:<br />

1. Select the Start FTP File Transfer option on the System menu. The Start FTP<br />

dialog is displayed.<br />

2. Specify the remote FTP server address in the FTP Server Address box. The entry<br />

defaults to the last used FTP address. If you are currently connected to a host via<br />

TCP/IP, then the address <strong>of</strong> that host can be selected as a secondary entry in the<br />

box.<br />

The server address may have a file path appended, for example:<br />

ftp.micros<strong>of</strong>t.com/services/technet<br />

Whenever the address is modified, you will be asked if the <strong>User</strong>name is to be<br />

changed as well. If yes, the FTP Options dialog is displayed in order to facilitate<br />

this (see Step 5 below).<br />

3. In the Direction box, select the direction <strong>of</strong> the transfer, either Send to Host or<br />

Receive From Host.<br />

<strong>POISE</strong>-<strong>SkyLite</strong> <strong>User</strong> <strong>Guide</strong> 55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!