ASP
  Home arrow ASP arrow Page 4 - Introducing SoftArtisans OfficeWriter 3.0 ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
SunQuest
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP

Introducing SoftArtisans OfficeWriter 3.0 Enterprise, with ASP Features
By:
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 32
    2005-09-27

    Table of Contents:
  • Introducing SoftArtisans OfficeWriter 3.0 Enterprise, with ASP Features
  • Many Features, But Easy to Use
  • Generating a Word Document
  • Generating an Excel Document
  • Documentation and Support

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    IBM developerWorks
     
    ADVERTISEMENT

    AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th -1:00PM EST. Register Today!

    Introducing SoftArtisans OfficeWriter 3.0 Enterprise, with ASP Features - Generating an Excel Document


    (Page 4 of 5 )

    Let us now look at how to generate a simple Excel document using ExcelWriter. Copy the code given below and execute it appropriately.

    Imports System
    Imports System.Web.UI
    Imports SoftArtisans.OfficeWriter.ExcelWriter

    Namespace SoftArtisans.ExcelWriter.MyOfficeWriter

     Public Class MyExcelDoc : Inherits System.Web.UI.Page
     
      Private excelapp As ExcelApplication

      Protected Sub Page_Load(sender As Object, e As EventArgs)
       TriggerDocument()
      End Sub
      
      Private Sub TriggerDocument()
      
       excelapp = New ExcelApplication()
       Dim wbook As Workbook = excelapp.Create()
       Dim wsheet As Worksheet = wbook.Worksheets(0)
       wsheet.Cells(0, 0).Value = "This excel document has been generated by using

    SoftArtisans OfficeWriter Enterprise Edition"    

       wsheet.Cells("C2").Value = "Microsoft"
       wsheet.Cells("D2").Value = "Oracle"
       wsheet.Cells("E2").Value = "Sybase"
       excelapp.Save(wbook, Page.Response, "MyOfficeWriterExcelDocument.xls", True)
      End sub
     End Class
    End Namespace

    The final output will be as shown in figure 2:

    You can also generate the document using the appropriate templates. The vendor has provided a detailed step-by-step guide at http://docs.softartisans.com/OfficeWriterWindows/
    3.0.5/WordWriter/quickstart/WordTemplate.aspx
    .

    More ASP Articles
    More By


       · I'm the author of this article. Please post your comments and I will try my best to...
     

    ASP ARTICLES

    - ADO for the Beginner
    - ADO.NET 101: Data Rendering with a DataGrid ...
    - Introducing SoftArtisans OfficeWriter 3.0 En...
    - Getting Remote Files With ASP
    - The Real Basics of Functions in ASP
    - Enhancing Readability with ASP
    - Mimicking PHP's String Formatting Functions
    - Windows Server Hacks 12, 77, and 98
    - How to Sort a Multi-Dimensional Array
    - Developing an Information Management Tool wi...
    - What are Active Server Pages?
    - Getting Remote Pages with ASP
    - FTP’ing Files with ASP
    - Apply Single-Sign-On to Your Application
    - Easy Error Management





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway