Home     Products      Support      Corporate     Sign In 

Support Knowledge Base, Article 979

Product
ExcelWriter
Version
5.x
Title
Using ExcelWriter or WordWriter in a standalone application
Problem
Can ExcelWriter or WordWriter be used in a standalone application?
Solution

ExcelWriter and WordWriter are most frequently used in web applications, but they can also be used in a standalone server application, both in Windows and in Java.

Note: ExcelWriter and WordWriter are designed to be used in a server environment and are licensed on a per-server or per-cpu basis. They cannot be redistributed in a desktop application. We previously offered a Desktop edition of ExcelWriter that could be redistributed, but it has since been discontinued. If you do decide to use either product in a standalone application, please be aware that you will need a license for each machine/cpu that the application will be installed on.

Standalone .NET Applications

To use ExcelWriter or WordWriter in a standalone .NET application:

  1. Add a Reference to the appropriate dll as you would in a Web Application
    • SAXWxNET.dll for ExcelWriter
    • SAWWxNET.dll for WordWriter
  2. Add a Reference to System.Web.dll (located in the .NET panel of the Add Reference dialog in Visual Studio.NET). You need to add this reference because ExcelWriter's Save method has code that needs to access the System.Web.HTTPResponse class.

In your application, only use the Save methods that save to disk or to a Stream, since you cannot stream files to the browser outside of a web application.

Standalone Java Applications

To use ExcelWriter or WordWriter in a standalone Java application:

  1. Add the appropriate jar files to your classpath when compiling and running your application:
    • ExcelWriter-vx.x.x.jar and ExcelWriter-vx-License.jar for ExcelWriter
    • WordWriter-vx.x.x.jar and WordWriter-vx-License.jar for WordWriter
  2. Add the path to the jar containing the servlet class to your classpath when compiling and running. This class is typically located in servlet-api.jar that comes with many application servers. It is also part of Sun's j2ee.jar.

In your application, only use the Save methods that save to disk or to an OutputStream, since you cannot stream files to the browser outside of a web application.

Related Links
OfficeWriter Home Page
Purchase OfficeWriter
OfficeWriter Enterprise Edition
Latest OfficeWriter News

Created : 4/21/2005 2:11:21 PM (last modified : 10/12/2006 2:29:19 PM)

Rate this article!

 
Comments



Copyright 2006 © SoftArtisans, Inc. All Rights Reserved.

Site Map     |     Privacy Policy     |     Contact Us