Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelTemplate (.NET)

ExcelTemplate Object

The ExcelTemplate object represents an ExcelWriter template spreadsheet. An ExcelWriter template is a file created in Microsoft Excel that contains data markers. A data marker specifies a database column, variable, or array to insert in the spreadsheet column containing the marker.

The ExcelTemplate object is in the SoftArtisans.OfficeWriter.ExcelWriter namespace. The object can be referenced as SoftArtisans.OfficeWriter.ExcelWriter.ExcelTemplate. To minimize typing and errors, use an Import directive to import the namespace to the aspx page, and reference the object as ExcelTemplate, without the namespace prefix. If you are coding directly in the .aspx page, following the Page directive, include:

	<%@ Import Namespace="SoftArtisans.OfficeWriter.ExcelWriter" %>

If you are coding in the code-behind page (.aspx.vb or .aspx.cs), include an Imports or Using statement at the top of the code-behind page:

	In VB.NET: 	Imports SoftArtisans.OfficeWriter.ExcelWriter
	In C#:	 using SoftArtisans.OfficeWriter.ExcelWriter;

To create an instance of the ExcelTemplate object use:

	In VB.NET:	Dim oExcelTemplate As New ExcelTemplate()
	In C#:	ExcelTemplate oExcelTemplate = new ExcelTemplate();
ExcelTemplate Properties ExcelTemplate Methods



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.