Find more
Windows programming tools at
 
   
  EzTools Software Logo Quality Windows Programming Tools
Because Presentation is Everything
WOW.NET
.NET WebBrowser wrapper
for window.external handling
more info
 
Home  Downloads  Buy Support Services About Us

ActiveScript.NET

 

Product Quicklist  
  Database Products
SQLitePlus & SQLite++  
SQLite.NET DLL  
SqlWeb COM DLL  
  HSP System
Overview  
HTML Scripting Pages  
EzWeb Compiler  
EzReg Copy Protection  
  ActiveX & .NET Components
EditListView Enhanced ListView  
WOW WebBrowser  
BrowserList HTML Listbox  
HotButton ActiveX  
HotLink HTML HyperLink  
HotList HTML Listbox  
SuperCombo HTML Droplist  
TabStrip ActiveX  
  Other Products
RegDb COM DLL  
Zip COM DLL  
Source Code  
EzComm Messaging DLL  
ActiveScript.NET  

 

ActiveScript.NET  Scripting Toolkit for .NET applications     

Product Overview

ActiveScript.NET enables Software Developers to integrate scripting capabilities directly into their .NET applications - to call VbScript and JScript functions without invoking the 'Windows Scripting Host'.

Usually, you call Script programs by invoking the 'Windows Script Host' (either wscript.exe or cscript.exe).  ActiveScript.NET directly communicates with the Script engines of the operating system. Some of the advantages of using ActiveScript.NET:


  • Add your application .NET objects to the scripting environment and call methods and properties on them directly in your scripts
  • Use the function results directly in your code, without redirecting standard error and standard output
  • Generate HTML/XML documents using the advanced features of ActiveScript.NET
  • Built-in script editor and tester for super-easy drop-in integration in your application
  • Easy to use, well documented interface
  • Call functions directly instead of writing 'stub' code - the results of the functions are available for direct use after the function completes
  • Pass function parameters dynamically - pass the function parameters 'on the fly', directly from your own application or script
  • Pass unlimited parameters
  • Intercept program errors that would normally crash the Windows Scripting Host
  • Customize your error messages
  • Support for Windows Services - you can call a VbScript or JScript function directly from a Windows Service.
  • Ability to set a time-out, preventing scripts from never completing
  • Robust script handing - bad scripts that would usually make a sub-system crash are intercepted by the toolkit
  • Thread safe - the Toolkit can be used in any multi-threading (and multi-processing) environment
  • Support for Windows Services
  • Advanced error handling
  • Advanced logging
  • Your users don't need to learn .NET programming to write scripts!


ActiveScript.NET
is true .NET component which provides an easy-to-use scripting interface for companies who in some way want scripting capability in their application. 

Advanced features

ActiveScript.NET is more than just a wrapper for the Microsoft Script Control.  We have added the following advanced features::


  • Built-in Script Editor and Tester
  • Text generation - ability to add "inline text".  It works much the same way as ASP and PHP (see example below)
  • Ability to include other scripts using #include directive
  • Ability to specify script language with #language directive
  • Ability for hosting application to manage script saving and loading (to a database, for example)

Script Editor

Of course, users must be able to create and edit scripts.  We have provided an easy to use script editor and tester which you can call with a single method call.  The following code snippet opens the Script Editor to edit a file:

scriptObj.RunScriptFileEditor( this, "MyScript.js", null );

ScriptObject.RunScriptFileEditor opens the Script Editor window with the indicated file open for editing.  Here is a screenshot:
 

Text Generation

Many times there is a need togenerate XML documents.  This is a very clumsy thing to do in code.  But web languages such as Microsoft ASP and PHP have the ability to "inline" text by delimiting it with certain characters.  We have added this same feature to ActiveScript.NET.  Consider this simple function below, which generates an XML document using this technique.

function GenXmlDoc( dsOrders, dsOrderItems )
{
    var orderId, custId, custName, cols
    cols = dsOrders.Columns;
    orderId = cols("OrderID").Value;
    custId = cols("CustomerID").Value;
    custName = cols("CompanyName").Value;
    total = 0;
%>
<?xml version="1.0" encoding="utf-8"?>
<ORDER>
  <ORDER_ID><%=orderId%></ORDER_ID>
  <CUST_ID><%=custId%></CUST_ID>
  <CUST_NAME><%=custName%></CUST_NAME>
  <ORDER_ITEMS>
  <% while( !dsOrderItems.eof )
  {
    var price, qty, amt, total
    cols = dsOrderItems.Columns;
    price = cols("UnitPrice").Value;
    qty = cols("Quantity").Value;
    amt = price * qty;
    total+= amt;
  %>
    <ORDER_ITEM>
      <PROD_ID><%=cols("ProductID").Value%></PROD_ID>
      <PROD_NAME><%=cols("ProductName").Value%></PROD_NAME>
      <PRICE><%=price%></PRICE>
      <QUANTITY><%=qty%></QUANTITY>
      <AMOUNT><%=amt%></AMOUNT>
    </ORDER_ITEM>
  <% dsOrderItems.MoveNext(); } %>
  </ORDER_ITEMS>
  <TOTAL><%=total%></TOTAL>
</ORDER>
<% }

 

ActiveScript.NET runs on the following Operating Systems:

  • Windows Vista
  • Windows 2003
  • Windows XP
  • Windows 2000
  • Windows NT4
  • Windows 98 and Windows ME
ActiveScript.NET includes samples for many development tools, including:

  • Visual C# .NET - Windows .NET based applications
  • JScript - Windows based scripts
  • VbScript - Windows based scripts

The performance of the module is outstanding, due to its multi-threaded architecture.

Architecture

ActiveScript.NET makes use of the Microsoft scripting engines - VbScript and JScript. It only makes use of the engines; it doesn't replace any script engine components.

ActiveScript.NET consists of these files:
  1. ActiveScript.dll - the actual ActiveX/COM component
  2. ScriptGen.dll - helper DLL for script parsing
  3. ICSharpCode.TextEditor.dll - Script text editor
  4. Interop.MSScriptControl.dll - .NET generated interop DLL
  5. Interop.ScriptGen.dll - .NET generated interop DLL

ActiveScript.NET can be distributed easily to many PC's. Once you have purchased the licenses, you copy the AxScript.dll to the PCs and register the DLL on that PC.

 

 

 

Copyright © EzTools Software2001-2007 All rights reserved. Trademarks and Disclaimer:
All trademarks belong to their respective companies.