WHAT'S HOT
Prev | Current Page 179 | Next

Jayaram Krishnaswamy

"Beginners Guide to SQL Server Integration Services Using Visual Studio 2005"


For this example, the Name is "Display IE Browser" and the Description is
"Navigate to the Internet Explorer Browser".
This brings up the ActiveX Script Task Editor window.
1. In the Script list item, click and invoke the Activex Script text editor window,
as in the previously example.
2. Type in the following script in the ActiveX Script text editor window.
The window should appear as shown in the following screenshot. Of course
you can type in the URL of your own liking.
Package with an ActiveX Script Task
[ 272 ]
There are really three lines in the script. The first line creates the object, the
second line navigates to the site whose URL is given as an argument to the
method, and the third line displays the page.
3. In the line item Entry method type in Main as before.
4. Build the project and execute the ActiveX Script Task component in the
Canvas??”"Display IE Browser".
The program cranks up and the ActiveX Script Task component turns green
indicating success and the IE browser gets displayed.
Summary
Three different ActiveX Scripts were demonstrated in this chapter. For
demonstration purposes, message boxes were chosen and this is not recommended
in an actual task as it is counter productive. Also not recommended, is the password
visibility in clear text. ActiveX Script Task is not going to be supported in future
versions and it is better to take heed of Microsoft's recommendation to use the Script
Task described in the next chapter.


Pages:
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191